ios点击链接直接跳转到 App&n…

来源:互联网 发布:黑白点网络 编辑:程序博客网 时间:2024/06/05 16:21
//跳转到应用页面
NSString *str = [NSStringstringWithFormat:@"http://itunes.apple.com/us/app/id%d",appid]; 
[[UIApplicationsharedApplication]openURL:[NSURLurlWithString:str]];
 
//跳转到评价页面
NSString *str = [NSStringstringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id;=%d"  
                         appid];   
[[UIApplicationsharedApplication]openURL:[NSURLurlWithString:str]];