转自:http://www.myexception.cn/operating-system/968655.html
ios开发之app内启动用户评价
恰当的指引用户去给app评分是获得用户反馈的一种不错的途径。
“通过custom
NSString *url = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",490062954];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
490062954是程序的Apple ID,可以在
中查到。
比如在用户使用一段时间后,弹出一个对话框提醒用户去评价:
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryK
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"去给'%@'打分吧!",appName]
[alertView show];
[alertView release];
在点击“去评价”按钮时就可以使用上面的方法打开用户评价的url。
我在对话框中通过传递appName这个参数显示了软件名称,当然也可以显示其他软件信息,比如软件版本:
NSString *appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]; “CFBundleDisplayName”和“CFBundleVersion”都是info.plist文件中的key。
本文介绍如何在iOS应用中适时提示用户进行评价,并提供具体实现代码。利用自定义URL方案启动App Store内的用户评价页面,提升应用的好评率。
1211

被折叠的 条评论
为什么被折叠?



