Inside an iOS
app of mine I want to set a button which is going to allow me to view a movie in the iTunes app.
Is that possible? If yes, how can I do it?
Inside an iOS
app of mine I want to set a button which is going to allow me to view a movie in the iTunes app.
Is that possible? If yes, how can I do it?
Swift 3, iOS 10 and above.
if let url = URL(string: "itms://itunes.apple.com/"),
UIApplication.shared.canOpenURL(url){
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}