1 var str = "https://itunes.apple.com/cn/app/zhang-jiange-hao-tou-zi-ke/id402382976?mt=8"//这个链接是app在itunes中的地址 2 if UIApplication.sharedApplication().canOpenURL(NSURL(string: str)!){ 3 UIApplication.sharedApplication().openURL(NSURL(string: str as String)!) 4 }
以上是在app中打开appStore中app的方法