LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
TOWebViewController Class Reference
Inheritance diagram for TOWebViewController:

Instance Methods

(instancetype) - initWithURL:
 
(instancetype) - initWithURLString:
 

Properties

NSURL * url
 
NSMutableURLRequest * urlRequest
 
UIWebView * webView
 
BOOL showLoadingBar
 
BOOL showUrlWhileLoading
 
UIColor * loadingBarTintColor
 
BOOL navigationButtonsHidden
 
BOOL showActionButton
 
BOOL showDoneButton
 
BOOL showPageTitles
 
BOOL disableContextualPopupMenu
 
BOOL hideWebViewBoundaries
 
void(^ modalCompletionHandler )(void)
 
BOOL(^ shouldStartLoadRequestHandler )(NSURLRequest *request, UIWebViewNavigationType navigationType)
 
UIColor * buttonTintColor
 
CGFloat buttonBevelOpacity
 

Method Documentation

- (instancetype) initWithURL: (NSURL *)  url

Initializes a new TOWebViewController object with the specified URL.

Parameters
urlThe URL to the web page that the controller will initially display.
Returns
The newly initialized TOWebViewController object.
- (instancetype) initWithURLString: (NSString *)  urlString

Initializes a new TOWebViewController object with the specified URL string.

Parameters
urlThe URL as a string, of the web page that the controller will initially display.
Returns
The newly initialized TOWebViewController object.

Property Documentation

- (CGFloat) buttonBevelOpacity
readwritenonatomicassign

On iOS 6 or below, this overrides the default opacity level of the bevel around the navigation buttons.

- (UIColor*) buttonTintColor
readwritenonatomicstrong

This can be used to override the default tint color of the navigation button icons.

- (BOOL) disableContextualPopupMenu
readwritenonatomicassign

Disables the contextual popups that can appear when the user taps and holds on a page link.

Default value is NO.

- (BOOL) hideWebViewBoundaries
readwritenonatomicassign

Hides the default system background behind the outer bounds of the webview, and replaces it with a background color derived from the the page content currently being displayed by the web view.

Default value is NO.

- (UIColor*) loadingBarTintColor
readwritenonatomiccopy

The tint colour of the page loading progress bar. If not set on iOS 7 and above, the loading bar will defer to the app's global UIView tint color. If not set on iOS 6 or below, it will default to the standard system blue tint color.

Default value is nil.

- (void(^ modalCompletionHandler) (void))
readwritenonatomiccopy

When the view controller is being presented as a modal popup, this block will be automatically performed right after the view controller is dismissed.

- (BOOL) navigationButtonsHidden
readwritenonatomicassign

Hides all of the page navigation buttons, and on iPhone, hides the bottom toolbar.

Default value is NO.

- (BOOL(^ shouldStartLoadRequestHandler) (NSURLRequest *request, UIWebViewNavigationType navigationType))
readwritenonatomiccopy

An optional block that when set, will have each incoming web load request forwarded to it, and can determine whether to let them proceed or not.

- (BOOL) showActionButton
readwritenonatomicassign

Shows the iOS 'Activty' button, which when tapped, presents a series of actions the user may take, including copying the page URL, tweeting the URL, or switching to Safari or Chrome.

Default value is YES.

- (BOOL) showDoneButton
readwritenonatomicassign

Shows the Done button when presented modally. When tapped, it dismisses the view controller.

Default value is YES.

- (BOOL) showLoadingBar
readwritenonatomicassign

Shows a loading progress bar underneath the top navigation bar.

Default value is YES.

- (BOOL) showPageTitles
readwritenonatomicassign

When web pages are loaded, the view controller's title property will be set to the page's HTML title attribute.

Default value is YES.

- (BOOL) showUrlWhileLoading
readwritenonatomicassign

Shows the URL of the web request currently being loaded, before the page's title attribute becomes available.

Default value is YES.

- (NSURL*) url
readwritenonatomicstrong

Get/set the current URL being displayed. (Will automatically start loading)

- (NSMutableURLRequest*) urlRequest
readwritenonatomicstrong

Get/set the request

- (UIWebView*) webView
readnonatomicassign

The web view used to display the HTML content. You can access it through this read-only property if you need to anything specific, such as having it execute arbitrary JS code.

Warning
Usage of the web view's delegate property is reserved by this view controller. Do not set it to another object.

The documentation for this class was generated from the following files: