Launching App Store from App in Swift

前端 未结 9 1026
情深已故
情深已故 2020-12-31 01:43

I am creating an app, and I have a banner which promotes my other app. This is my code:

var barsButton : UIButton = UIButton(frame: CGRectMake((self.view.bou         


        
9条回答
  •  情书的邮戳
    2020-12-31 02:28

    Swift 3 - XCode 8.2.1

    UIApplication.shared.openURL(URL(string: "itms-apps://itunes.apple.com/app/id" + appStoreAppID)!)
    

提交回复
热议问题