Using the iTunes app, from another app

43 Views Asked by At

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?

1

There are 1 best solutions below

1
Gurjit Singh On

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)
    }