简体   繁体   English

在swift的新窗口中打开URL

[英]Open URL in new window in swift

I am trying to open an url in safari using UIApplication.shared.open(url, options: [:], completionHandler: nil) but it opens in existing window of safari. 我试图使用UIApplication.shared.open(url, options: [:], completionHandler: nil)在safari中打开一个url,但它会在safari的现有窗口中打开。 Is there any way to open it in a new window ? 有没有办法在新窗口中打开它?

No, unfortunately you cannot. 不,不幸的是你不能。 Apple does not provide a way to specify how the url is opened. Apple没有提供指定网址打开方式的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM