Launch an app from within another (iPhone)

后端 未结 14 1892
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 01:14

Is it possible to launch any arbitrary iPhone application from within another app?, For example in my application if I want the user to push a button an

14条回答
  •  余生分开走
    2020-11-22 01:35

    Swift 3 quick and paste version of @villy393 answer for :

    if UIApplication.shared.canOpenURL(openURL) {
        UIApplication.shared.openURL(openURL)
    } else if UIApplication.shared.canOpenURL(installUrl) 
        UIApplication.shared.openURL(installUrl)
    }
    

提交回复
热议问题