Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的iOS应用程序中,我想设置一个按钮,允许我在 iTunes 应用程序中观看电影。
iOS
那可能吗?如果是,我该怎么做?
Swift 3、iOS 10 及更高版本。
if let url = URL(string: "itms://itunes.apple.com/"), UIApplication.shared.canOpenURL(url){ UIApplication.shared.open(url, options: [:], completionHandler: nil) }