swift跳转到Appstore

时间:2017-01-06 16:29:51   收藏:0   阅读:391

//进入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)

原文:http://www.cnblogs.com/caodedi-88/p/6256567.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!