[Objective-C] 点击链接直接跳转到 App Store 指定应用下载页面的代码 →→→→→进入此内容的聊天室

来自 , 2020-08-22, 写在 Objective-C, 查看 183 次.
URL http://www.code666.cn/view/8963920e
  1. //跳转到应用页面
  2. NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d",appid];  
  3. [[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];
  4.  
  5. //跳转到评价页面
  6. NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id;=%d",    
  7.                          appid ];    
  8. [[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];
  9. //objectc/5694

回复 "点击链接直接跳转到 App Store 指定应用下载页面的代码"

这儿你可以回复上面这条便签

captcha