UZWebViewProtocol Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | UZWebViewProtocol.h |
request
required method
当前页面加载的URL request
@property (nonatomic, readonly) NSURLRequest *request
Discussion
当前页面加载的URL request
Declared In
UZWebViewProtocol.h
– loadRequest:
required method
加载页面请求
- (void)loadRequest:(NSURLRequest *)request
Parameters
request |
将要加载的URL request |
---|
Discussion
加载页面请求
Declared In
UZWebViewProtocol.h
– stopLoading
required method
停止加载页面
- (void)stopLoading
Discussion
停止加载页面
Declared In
UZWebViewProtocol.h
– goBack
required method
历史记录后退一页
- (void)goBack
Discussion
历史记录后退一页
Declared In
UZWebViewProtocol.h
– goForward
required method
历史记录往前一页
- (void)goForward
Discussion
历史记录往前一页
Declared In
UZWebViewProtocol.h
canGoBack
required method
历史记录是否可以后退一页
@property (nonatomic, readonly) BOOL canGoBack
Discussion
历史记录是否可以后退一页
Declared In
UZWebViewProtocol.h
canGoForward
required method
历史记录是否可以前进一页
@property (nonatomic, readonly) BOOL canGoForward
Discussion
历史记录是否可以前进一页
Declared In
UZWebViewProtocol.h
loading
required method
页面是否正在加载
@property (nonatomic, readonly, getter=isLoading) BOOL loading
Discussion
页面是否正在加载
Declared In
UZWebViewProtocol.h
– evaluateJavaScript:completionHandler:
required method
在页面执行一段JavaScript代码
- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void ( ^ ) ( id , NSError *error ))completionHandler
Parameters
javaScriptString |
JavaScript代码 |
---|---|
completionHandler |
JavaScript代码执行完成或失败后调用的block |
Discussion
在页面执行一段JavaScript代码
Declared In
UZWebViewProtocol.h