tags:

views:

75

answers:

2

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"&gt;www.google.com&lt;/a&gt;

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.

A: 
<A HREF="www.google.com" TARGET="_blank">google in a new window</A>
+1  A: 

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.

KennyTM