Inherits from UIViewController
Conforms to UIWebViewDelegate
Declared in TKWebViewController.h

Overview

This class creates a UIViewController with a basic UIWebView as the focal point view.

Tasks

Other Methods

Properties

  •   URL

    The URL that will be loaded by the web view.

    property
  •   URLRequest

    The URLRequest that will be loaded by the web view.

    property
  •   webView

    Returns the UIWebView managed by the controller object.

    property
  • – showActionSheet:

    Show a UIActivityViewController to share the URL of the web view

Properties

URL

The URL that will be loaded by the web view.

@property (nonatomic, strong) NSURL *URL

Discussion

The URL that will be loaded by the web view.

Declared In

TKWebViewController.h

URLRequest

The URLRequest that will be loaded by the web view.

@property (nonatomic, strong) NSURLRequest *URLRequest

Discussion

The URLRequest that will be loaded by the web view.

Declared In

TKWebViewController.h

webView

Returns the UIWebView managed by the controller object.

@property (nonatomic, strong) UIWebView *webView

Discussion

Returns the UIWebView managed by the controller object.

Declared In

TKWebViewController.h

Instance Methods

initWithURL:

Initializes a web vew controller that will load the given NSURL object.

- (id)initWithURL:(NSURL *)URL

Parameters

URL

A NSURL object that will loaded by the UIWebView.

Return Value

An initialized TKWebViewController object or nil if the object couldn’t be created.

Discussion

Initializes a web vew controller that will load the given NSURL object.

Declared In

TKWebViewController.h

initWithURLRequest:

Initializes a web vew controller that will load the given URLRequest object.

- (id)initWithURLRequest:(NSURLRequest *)URLRequest

Parameters

URLRequest

A URLRequest object that will loaded by the UIWebView.

Return Value

An initialized TKWebViewController object or nil if the object couldn’t be created.

Discussion

Initializes a web vew controller that will load the given URLRequest object.

Declared In

TKWebViewController.h

showActionSheet:

Show a UIActivityViewController to share the URL of the web view

- (void)showActionSheet:(id)sender

Parameters

sender

The sender of the action.

Discussion

Show a UIActivityViewController to share the URL of the web view

Declared In

TKWebViewController.h