我使用下面的代码开放艾迪利浆纸如何从我的应用程序重定向到“Addison Lee ride App”以通过iPhone应用程序中的深层链接进行重定向?
始终重定向到的Appstore,如果应用程序已经安装过
// If AddisonLee is not installed, send the user to the Apple App Store
let hereWeGoApp = UIApplication.sharedApplication()
let addisonLeeAppURL = NSURL(string: "addisonlee://")!
if hereWeGoApp.canOpenURL(addisonLeeAppURL) {
// addisonlee is installed; launch it
hereWeGoApp.openURL(addisonLeeAppURL)
} else {
// addisonlee not installed; open App Store
let addisonLeeAppStoreURL = NSURL(string: "https://itunes.apple.com/in/app/addison-lee-mini-cab-taxi/id718312937?mt=8")!
hereWeGoApp.openURL(addisonLeeAppStoreURL)
}
目前还不清楚你问什么在这里应用的答案吗?也许你可以阅读[问],然后回来编辑一个更容易理解的问题? – Dave
我想从我的应用程序重定向到“Addison Lee”应用程序。 –