STWWebViewDelegate Class Reference
Inherits from | NSObject |
Conforms to | UIWebViewDelegate |
Declared in | STWWebViewDelegate.h STWWebViewDelegate.m |
Overview
STWWebViewDelegate is the delegate class for a webView which you want to use the Straw Framework with.
Instance Methods
initWithWebView:
Init with webView.
- (instancetype)initWithWebView:(UIWebView *)webView
Parameters
- webView
the webView
Return Value
the instance of the class
Discussion
Init with webView.
Declared In
STWWebViewDelegate.h
initWithWebView:withViewController:
Init with webView and viewController.
- (instancetype)initWithWebView:(UIWebView *)webView withViewController:(UIViewController *)viewController
Parameters
- webView
the webView
- viewController
the viewController
Return Value
the instance of the class
Discussion
Init with webView and viewController.
viewController is necessary if you want use the services which depends on the viewController property.
Declared In
STWWebViewDelegate.h
loadService:
Load the service instance from the class object.
- (void)loadService:(Class<STWService>)serviceClass
Parameters
- serviceClass
the service class to load
Discussion
Load the service instance from the class object.
The resulted service instance will be stored in the NativeBridge object.
Declared In
STWWebViewDelegate.h