0

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?

Michel
  • 10,303
  • 17
  • 82
  • 179

1 Answers1

1

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)
    }
Gurjit Singh
  • 1,723
  • 21
  • 27
  • What is the difference between https://www.apple.com/itunes/ and itms://itunes.apple.com/ ? Is the last one some kind if deep link? – Michel Aug 20 '17 at 05:28