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