首页 > 移动平台 > 详细

swift跳转到Appstore

时间:2017-01-06 16:29:51      阅读:389      评论:0      收藏:0      [点我收藏+]

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

swift跳转到Appstore

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!