Inherits from UIViewController
Conforms to UIWebViewDelegate
Declared in TKWebViewController.h
TKWebViewController.m

Overview

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

Properties

URL

The URL that will be loaded by the web view.

@property (nonatomic, strong) NSURL *URL

Declared In

TKWebViewController.h

URLRequest

The URLRequest that will be loaded by the web view.

@property (nonatomic, strong) NSURLRequest *URLRequest

Declared In

TKWebViewController.h

actionBarButtonItem

Returns the UIBarButtonItem that shows the share sheet.

@property (nonatomic, strong) UIBarButtonItem *actionBarButtonItem

Declared In

TKWebViewController.h

webView

Returns the UIWebView managed by the controller object.

@property (nonatomic, strong) UIWebView *webView

Declared In

TKWebViewController.h

Instance Methods

dismiss:

A convenience method for dismissing the presented view controller.

- (void)dismiss:(id)sender

Parameters

sender

The sender that sent the event.

Declared In

TKWebViewController.h

initWithURL:

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

- (instancetype)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.

Declared In

TKWebViewController.h

initWithURLRequest:

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

- (instancetype)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.

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.

Declared In

TKWebViewController.h