rexis.cn

一张相片 一段故事

iphone程序中跳转到appstore评论界面

without comments

在程序中加入appstore的review跳转,实现方法很简单,就是让系统去打开一个review的链接,代码如下:

- (void) gotoWriteReviews {
	NSString* appID = NSLocalizedString(@"itunesconnect_appid", nil);	//这里是itunes connect生成的一串数字id
	NSString *u = [NSString stringWithFormat:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software",appID];
	[[UIApplication sharedApplication] openURL:[NSURL URLWithString:u]];
}

Written by 北

五月 25th, 2010 at 12:13 下午

Posted in iphone开发

Tagged with , ,

Leave a Reply