html - How to open UIWebView from another UIWebView? -
i have web view @ bottom of 1 of view controllers contains links. want when user clicks on 1 of links in web view opens web view takes screen with content of page user has clicked on. or maybe when user clicks on 1 of links in web view, user taken safari display content of link. know how this? cheers.
above screen shot of web view links user can click on..
try this:
-(bool)webview:(uiwebview *)webview shouldstartloadwithrequest:(nsurlrequest *)request navigationtype:(uiwebviewnavigationtype)navigationtype; { nsurl *requesturl =[ request url ]; if ( ( [ [ requesturl scheme ] isequaltostring: @"http" ] || [ [ requesturl scheme ] isequaltostring: @"https" ] || [ [ requesturl scheme ] isequaltostring: @"mailto" ]) && ( navigationtype == uiwebviewnavigationtypelinkclicked ) ) { return ![ [ uiapplication sharedapplication ] openurl: requesturl] ; } return yes; }
ReplyDeleteAwesome blog. It was very informative. I would like to appreciate you. Keep updated like this!
Best Data Science Online Training Institute In Hyderabad | Online Data Science Training