如何点击链接直接跳转到app store指定应用下载页面

来源:互联网 发布:多益网络 概念股 编辑:程序博客网 时间:2024/04/28 16:50
  1. NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d", 436957167];  
  2. [[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];  

其中,436957167是appid


附:跳转到评价页面:

[plain] view plain copy
  1. NSString *str = [NSString stringWithFormat:    
  2.                          @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",    
  3.                          436957167 ];    
  4. [[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];  
0 0
原创粉丝点击