SCWebBrowser Class Reference
Inherits from | UIView |
Declared in | SCWebBrowser.h |
Overview
The SCWebBrowser object contains SCWebView view and simple navigation bar.
The interface of SCWebBrowser is similar to UIWebView and has the same behaviour. It should be used to open web pages that use sitecore javascript web plug-ins. Otherwise they will not work properly.
Tasks
-
– setCustomToollbarView:
SCWebBrowser has simple navigation view with back and forward buttons and activity indicator and if you need to provide own custom navigator view, please pass UIView object which conforms to SCWebBrowserToolbar protocol.
-
activityIndicator
Activity indicator in the center of browser.
property -
delegate
This property is an alias to [UIWebView delegate] property.
property -
scrollView
This property is an alias to [UIWebView scrollView] property.
property -
– loadURLWithString:
This method constructs an URL from the given string and calls the [UIWebView loadURL:] method.
-
– loadRequest:
This method is an alias to [UIWebView loadRequest:] method.
-
– loadHTMLString:baseURL:
This method is an alias to [UIWebView loadHTMLString:baseURL:] method.
-
– loadURL:
This method is an alias to [UIWebView loadRequest:] method.
It constructs the request from the URL and loads it in the corresponding UIWebView. -
– loadData:MIMEType:textEncodingName:baseURL:
This method is an alias to [UIWebView loadData:MIMEType:textEncodingName:baseURL:] method.
-
request
This property is an alias to [UIWebView request] property.
property -
– reload
This method is an alias to [UIWebView reload] method.
-
– refreshViews
Refresh views
-
– stopLoading
This method is an alias to [UIWebView stopLoading] method.
-
– goBack
This method is an alias to [UIWebView goBack] method.
-
– goForward
This method is an alias to [UIWebView goForward] method.
-
canGoBack
This property is an alias to [UIWebView canGoBack] property.
property -
canGoForward
This property is an alias to [UIWebView canGoForward] property.
property -
loading
This property is an alias to [UIWebView loading] property.
property -
– stringByEvaluatingJavaScriptFromString:
This method is an alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.
-
scalesPageToFit
This property is an alias to [UIWebView scalesPageToFit] property.
property -
dataDetectorTypes
This property is an alias to [UIWebView dataDetectorTypes] property.
property -
allowsInlineMediaPlayback
This property is an alias to [UIWebView allowsInlineMediaPlayback] property.
property -
mediaPlaybackRequiresUserAction
This property is an alias to [UIWebView mediaPlaybackRequiresUserAction] property.
property -
mediaPlaybackAllowsAirPlay
This property is an alias to [UIWebView mediaPlaybackAllowsAirPlay] property.
property
Properties
activityIndicator
Activity indicator in the center of browser.
@property (nonatomic, readonly) UIActivityIndicatorView *activityIndicator
Discussion
Activity indicator in the center of browser.
Declared In
SCWebBrowser.h
allowsInlineMediaPlayback
This property is an alias to [UIWebView allowsInlineMediaPlayback] property.
@property (nonatomic) BOOL allowsInlineMediaPlayback
Return Value
iPhone Safari defaults to NO. iPad Safari defaults to YES
Discussion
This property is an alias to [UIWebView allowsInlineMediaPlayback] property.
Declared In
SCWebBrowser.h
canGoBack
This property is an alias to [UIWebView canGoBack] property.
@property (nonatomic, readonly, getter=canGoBack) BOOL canGoBack
Discussion
This property is an alias to [UIWebView canGoBack] property.
Declared In
SCWebBrowser.h
canGoForward
This property is an alias to [UIWebView canGoForward] property.
@property (nonatomic, readonly, getter=canGoForward) BOOL canGoForward
Discussion
This property is an alias to [UIWebView canGoForward] property.
Declared In
SCWebBrowser.h
dataDetectorTypes
This property is an alias to [UIWebView dataDetectorTypes] property.
@property (nonatomic) UIDataDetectorTypes dataDetectorTypes
Discussion
This property is an alias to [UIWebView dataDetectorTypes] property.
Declared In
SCWebBrowser.h
delegate
This property is an alias to [UIWebView delegate] property.
@property (nonatomic, weak) id<SCWebBrowserDelegate> delegate
Discussion
This property is an alias to [UIWebView delegate] property.
Declared In
SCWebBrowser.h
loading
This property is an alias to [UIWebView loading] property.
@property (nonatomic, readonly, getter=isLoading) BOOL loading
Discussion
This property is an alias to [UIWebView loading] property.
Declared In
SCWebBrowser.h
mediaPlaybackAllowsAirPlay
This property is an alias to [UIWebView mediaPlaybackAllowsAirPlay] property.
@property (nonatomic) BOOL mediaPlaybackAllowsAirPlay
Return Value
iPhone and iPad Safari both default to YES
Discussion
This property is an alias to [UIWebView mediaPlaybackAllowsAirPlay] property.
Declared In
SCWebBrowser.h
mediaPlaybackRequiresUserAction
This property is an alias to [UIWebView mediaPlaybackRequiresUserAction] property.
@property (nonatomic) BOOL mediaPlaybackRequiresUserAction
Return Value
iPhone and iPad Safari both default to YES
Discussion
This property is an alias to [UIWebView mediaPlaybackRequiresUserAction] property.
Declared In
SCWebBrowser.h
request
This property is an alias to [UIWebView request] property.
@property (nonatomic, readonly) NSURLRequest *request
Discussion
This property is an alias to [UIWebView request] property.
Declared In
SCWebBrowser.h
Instance Methods
goBack
This method is an alias to [UIWebView goBack] method.
- (void)goBack
Discussion
This method is an alias to [UIWebView goBack] method.
Declared In
SCWebBrowser.h
goForward
This method is an alias to [UIWebView goForward] method.
- (void)goForward
Discussion
This method is an alias to [UIWebView goForward] method.
Declared In
SCWebBrowser.h
loadData:MIMEType:textEncodingName:baseURL:
This method is an alias to [UIWebView loadData:MIMEType:textEncodingName:baseURL:] method.
- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL
Parameters
- data
The content for the main page.
- MIMEType
The MIME type of the content.
- textEncodingName
The IANA encoding name as in utf-8 or utf-16.
- baseURL
The base URL for the content.
Discussion
This method is an alias to [UIWebView loadData:MIMEType:textEncodingName:baseURL:] method.
Declared In
SCWebBrowser.h
loadHTMLString:baseURL:
This method is an alias to [UIWebView loadHTMLString:baseURL:] method.
- (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL
Parameters
- string
The content for the main page.
- baseURL
The base URL for the content. It will be prepended to all relative hyperlinks.
Discussion
This method is an alias to [UIWebView loadHTMLString:baseURL:] method.
Declared In
SCWebBrowser.h
loadRequest:
This method is an alias to [UIWebView loadRequest:] method.
- (void)loadRequest:(NSURLRequest *)request
Parameters
- request
A URL request identifying the location of the content to load.
Discussion
This method is an alias to [UIWebView loadRequest:] method.
Declared In
SCWebBrowser.h
loadURL:
This method is an alias to [UIWebView loadRequest:] method.
It constructs the request from the URL and loads it in the corresponding UIWebView.
- (void)loadURL:(NSURL *)url
Parameters
- url
URL of the web page to display
Discussion
This method is an alias to [UIWebView loadRequest:] method.
It constructs the request from the URL and loads it in the corresponding UIWebView.
Declared In
SCWebBrowser.h
loadURLWithString:
This method constructs an URL from the given string and calls the [UIWebView loadURL:] method.
- (void)loadURLWithString:(NSString *)urlString
Parameters
- urlString
string with URL to open by browser
Discussion
This method constructs an URL from the given string and calls the [UIWebView loadURL:] method.
NSURL* urlToLoad = [[NSURL alloc]initWithString: urlString];
[UIWebView loadURL:urlToLoad];
Declared In
SCWebBrowser.h
reload
This method is an alias to [UIWebView reload] method.
- (void)reload
Discussion
This method is an alias to [UIWebView reload] method.
Declared In
SCWebBrowser.h
setCustomToollbarView:
SCWebBrowser has simple navigation view with back and forward buttons and activity indicator and if you need to provide own custom navigator view, please pass UIView object which conforms to SCWebBrowserToolbar protocol.
- (void)setCustomToollbarView:(UIView<SCWebBrowserToolbar> *)toolbar
Parameters
- toolbar
a custom control that lets the user go back and forward through web pages displayed in the SCWebBrowser. See SCWebBrowserToolbar and SCWebBrowserToolbarDelegate protocols for more details.
Discussion
SCWebBrowser has simple navigation view with back and forward buttons and activity indicator and if you need to provide own custom navigator view, please pass UIView object which conforms to SCWebBrowserToolbar protocol.
Declared In
SCWebBrowser.h
stopLoading
This method is an alias to [UIWebView stopLoading] method.
- (void)stopLoading
Discussion
This method is an alias to [UIWebView stopLoading] method.
Declared In
SCWebBrowser.h
stringByEvaluatingJavaScriptFromString:
This method is an alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
Parameters
- script
A string that contains the JavaScript code to execute.
Return Value
The result of running script or nil if it fails.
Discussion
This method is an alias to [UIWebView stringByEvaluatingJavaScriptFromString:] method.
Declared In
SCWebBrowser.h