Reputation: 7789
Special thanks in advance for sending me answer........ I m the beginner in iphone development. I was calling html page in the UISegment Controller.The url in that page html page is open in the same page. In html page i wrote the following code
<a href="http://google.com">www.google.com</a>
But it open that url in UISegment Control of WebView on same page. I want that url open in new page of safari browser in iphone.
Upvotes: 0
Views: 173
Reputation: 523264
You can assign a delegate to your web view.
In the delegate's class, implement -webView:shouldStartLoadWithRequest:navigationType:
. Then use UIApplication's -openURL:
to close the app and open the page in MobileSafari.
Upvotes: 1
Reputation: 318
<A HREF="www.google.com" TARGET="_blank">google in a new window</A>
Upvotes: 1