美文网首页
Safari 跳转appstore, APP跳转appst

Safari 跳转appstore, APP跳转appst

作者: e9a5b92a9e6c | 来源:发表于2018-07-27 15:58 被阅读0次

https://www.jianshu.com/p/4df1f6c613bd
Safari 跳转appstore

https://www.jianshu.com/p/6562f6c0de5c

淘宝的APPID:387682726
跳转评分url
NSString *urlStr = [NSString
stringWithFormat:@"https://itunes.apple.com/cn/app/itunes-u/id%@?action=write-review&mt=8",
@"387682726"];//APPID,跳转评分
NSString *urlStr = [NSString
stringWithFormat:@"itms-apps://itunes.apple.com/cn/app/id%@?mt=8",
@"387682726"];//APPID,跳转app
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10.0) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr] options:@{} completionHandler:nil];
} else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];
}

相关文章

网友评论

      本文标题:Safari 跳转appstore, APP跳转appst

      本文链接:https://www.haomeiwen.com/subject/xxrgmftx.html