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.

enter image description here

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; } 

Comments

Post a Comment

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -