程序内部让用户直接上appstore评价游戏的链接地址以及跳转方法

NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d", Config_MyAppID];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

 

NSString *str = [NSStringstringWithFormat:

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

Config_MyAppID是itunesconnect网站上对应app的Apple ID,它是一串纯数字。

app内部跳转到制定appstore的指定app

NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d", 436957167];
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];

posted @ 2012-11-13 14:50  coderguo  阅读(377)  评论(0编辑  收藏  举报