Open Mobile Safari from a Link in a WebView

前端 未结 5 1719
不思量自难忘°
不思量自难忘° 2020-11-30 10:00

Is there a URI scheme to open Mobile Safari to a specific URL?

e.g.,

Open Google in Safari         


        
5条回答
  •  失恋的感觉
    2020-11-30 10:15

    Try this:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com/"]];
    

提交回复
热议问题