开发者

Prevent app exit from UIWebView link

开发者 https://www.devze.com 2022-12-24 20:15 出处:网络
I have a UIWebView in my app which shows the clients webpage, howeve开发者_Go百科r I would like to retain the user within the app if they choose to browse the webpage.

I have a UIWebView in my app which shows the clients webpage, howeve开发者_Go百科r I would like to retain the user within the app if they choose to browse the webpage.

Can I prevent it breaking out to Safari when a link is clicked?


Try implementing UIWebViewDelegate's:

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

HTH.

0

精彩评论

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

关注公众号