开发者

How to intercept URL int iPhone's Default web browser?

开发者 https://www.devze.com 2023-02-16 12:43 出处:网络
开发者_Python百科Is there any private API by which I can intercept url which user tries to open from default iPhone browser?

开发者_Python百科Is there any private API by which I can intercept url which user tries to open from default iPhone browser?

Is there any web kit framework in iPhone?


Use the following webview delegate.

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {

    NSString * URLString = [[request URL] absoluteString];

return YES; //return NO; to stop loading

}
0

精彩评论

暂无评论...
验证码 换一张
取 消