how to open the url in safari not in webview

后端 未结 10 1796
时光说笑
时光说笑 2020-12-28 16:18

I want to open an url in safari, outisde the app and not in webview.

I implemented the UIWebViewDelegate but I am still not able to open the url. Basically I am not

10条回答
  •  难免孤独
    2020-12-28 16:55

    This works for me:

    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"http://www.apple.com"]];
    

提交回复
热议问题