ios点击链接直接跨越反到 App Store 指定应用下载页面

//跳转到应用页面
NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d",appid];  
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]]; 

//跳转到评价页面
NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id;=%d",    
                         appid ];    
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];
//该片段来自于http://outofmemory.cn

//跳反到以页面

NSString *str =
[NSString stringWithFormat:@”http://itunes.apple.com/us/app/id%d",appid\];

[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];

//跳反至评价页面

NSString *str =
[NSString stringWithFormat:@”itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id;=%d”,appid];

[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图