swift跳转到Appstore

//进入appstore中指定的应用

let str = NSString(format: "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d", "myAppID")

UIApplication.shared.canOpenURL(NSURL(string: str as String) as! URL)

//进入首页

let str = NSString(format: "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@", "myAppID")

UIApplication.shared.canOpenURL(NSURL(string: str as String) as! URL)

上一篇:在 OS X Yosemite 中部署Mesos


下一篇:转: android apk 防止反编译技术(1~5连载)