我想在我的应用中添加“评价/评论此应用”功能。
有没有办法直接链接到应用商店中他们审核应用的屏幕?因此,客户无需点击主应用程序链接。谢谢。
编辑:由于缺乏回应,因此开始悬赏。只是为了确保它非常清晰:我知道我可以链接到商店中我的应用程序页面,并要求用户从那里单击到“查看此应用程序”屏幕。问题是是否可以直接链接到“查看此应用程序”屏幕,这样他们就不必点击任何内容。
最佳答案
For versions lower than iOS 7 use the old one:
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOUR_APP_ID
This works on my end (Xcode 5 - iOS 7 - Device!):
itms-apps://itunes.apple.com/app/idYOUR_APP_ID
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=YOUR_APP_ID&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software
代码片段(您可以复制并粘贴它):
#define YOUR_APP_STORE_ID 545174222 //Change this one to your ID
static NSString *const iOS7AppStoreURLFormat = @"itms-apps://itunes.apple.com/app/id%d";
static NSString *const iOSAppStoreURLFormat = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d";
[NSURL URLWithString:[NSString stringWithFormat:([[UIDevice currentDevice].systemVersion floatValue] >= 7.0f)? iOS7AppStoreURLFormat: iOSAppStoreURLFormat, YOUR_APP_STORE_ID]]; // Would contain the right link
关于iphone - "rate/review this app"的应用商店链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3124080/