Opening the Apple TV App Store

前端 未结 7 1131
南旧
南旧 2020-12-13 22:06

Trying to build a tvOS app and one of the use cases I have is to be able to link off and open another app in the Apple TV App Store directly on a button click. Can someone p

7条回答
  •  青春惊慌失措
    2020-12-13 22:58

    Just tested this on tvOS:

    if let appStoreURL = NSURL(string: "https://itunes.apple.com/us/app/wee-puzzles/id1035425291?mt=8") {
        UIApplication.sharedApplication().openURL(appStoreURL)
    }
    

    It works and opens the App Store page of your app on Apple TV. It's the same as iOS.

提交回复
热议问题