[swift] ItuneStoreのアプリページやレビューページを開く
目次
ItuneStoreのアプリページやレビューページを開く
ItuneStoreのアプリページやレビューページを開くには以下の通り
ItuneStoreのアプリページを開く
let itunesURL:String = "itms-apps://itunes.apple.com/app/idxxxxxx" //xxxxxはアプリのappleID let url = NSURL(string:itunesURL) let app:UIApplication = UIApplication.sharedApplication() app.openURL(url!)
レビューページを開く
let itunesURL:String = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=xxxxx" //xxxxxはアプリのappleID let url = NSURL(string:itunesURL) let app:UIApplication = UIApplication.sharedApplication() app.openURL(url!)