直接跳转到app store指定应用页面或评论页面

来源:互联网 发布:黑客帝国数字雨 算法 编辑:程序博客网 时间:2024/05/12 21:17

转自:http://blog.csdn.net/yangtb2010/article/details/7861487

跳转到app store指定应用页面:

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

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

其中472907899是 应用id        


跳转到app store指定应用评论页面:   

            NSString *str = [NSString stringWithFormat:

                             @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",

                            472907899];

            [[UIApplication sharedApplicationopenURL:[NSURL URLWithString:str]];

其中472907899是 应用id

0 0
原创粉丝点击