SWRLContentViewController Class Reference
| Inherits from | UINavigationController |
|---|---|
| Conforms to | UIGestureRecognizerDelegate UIWebViewDelegate |
| Declared in | SWRLContentViewController.h SWRLContentViewController.m |
Overview
The SWRLContentViewController class defines the view controller used for presenting interstitial content. This class can be subclassed in order to customize some of its look and feel and behavior.
Acessing Attributes
webViewController
The UIViewController that contains the webView
@property (nonatomic) UIViewController *webViewControllerDeclared In
SWRLContentViewController.h
webView
The UIWebView for rendering html content.
@property (nonatomic) UIWebView *webViewDeclared In
SWRLContentViewController.h
content
The SWRLContent object that is being loaded. If this is nil, then the most recent content in the content history will be used. If there is not such content, then the emptyContentHtml will be used.
@property (nonatomic, readonly) SWRLContent *contentDeclared In
SWRLContentViewController.h
toolbarItems
The current array of toolbar items for the webview
@property (nonatomic, readonly) NSArray *toolbarItemsDeclared In
SWRLContentViewController.h
emptyContentHtml
The html string to display when there is no content to show. The default screen is white page with gray text that says No Content.
@property (nonatomic, readonly) NSString *emptyContentHtmlDeclared In
SWRLContentViewController.h
loadingView
The current loading view. This can be overridden if different behavior is desired. The default loading view displays a 20% black mask with a white spinner.
@property (nonatomic, readonly) UIView *loadingViewDeclared In
SWRLContentViewController.h
closeHandler
The close handler is called when the user hits the ‘X’ and during the completion for dismissViewControllerAnimated:
@property (nonatomic, copy) void ( ^ ) ( void ) closeHandlerDeclared In
SWRLContentViewController.h
– loadContent:wait:completion:
loadContent is called by the SWRLContentManager when content is received.
- (void)loadContent:(SWRLContent *)content wait:(NSTimeInterval)wait completion:(void ( ^ ) ( NSError *))completionParameters
content |
The content to load. |
|---|---|
wait |
Amount of time to wait for pre-load..completion will be called when load complete or this time expires |
completion |
The block that is executed with the content load completes (or fails). |
Declared In
SWRLContentViewController.h
– willShowLoadingView:
Called before the loading view is shown.
- (void)willShowLoadingView:(UIView *)loadingViewParameters
loadingView |
By default this is the maskView. |
|---|
Declared In
SWRLContentViewController.h
– didHideLoadingView:
Called after the loading view has been hidden.
- (void)didHideLoadingView:(UIView *)loadingViewParameters
loadingView |
By default this is the maskView. |
|---|
Declared In
SWRLContentViewController.h
– close:
Called to close the view.
- (void)close:(id)senderParameters
sender |
The button |
|---|
Declared In
SWRLContentViewController.h