[英]Rate and review within an app possible in iOS7?
I have heard that iOS7 allows users to rate and review an app within that app, avoiding the need to redirect to appstore and leaving the app. 我听说iOS7允许用户对该应用程序中的一个应用程序进行评分和审查,而无需重定向到应用程序商店并离开该应用程序。 So far, I have only found the difference in the URL links for the rate feature in itunes as mentioned in ITunes review URL and iOS 7 (ask user to rate our app) AppStore show a blank page , but not how to stay inside the app. 到目前为止,我只发现了iTunes中速率功能的URL链接中的差异,如ITunes评论URL和iOS 7(要求用户对我们的应用进行评级)中所述,AppStore显示空白页面 ,但没有显示如何留在应用内部。
I'm using Appirater in my app and integrated the new url and app goes to appstore for rate/review. 我在我的应用程序中使用Appirater,并集成了新的网址,并且该应用程序进入appstore进行评分/审查。
Can anybody tell me if this new feature is there and how to implement it? 谁能告诉我这个新功能是否存在以及如何实现?
I think you're looking for the SKProductViewController. 我认为您正在寻找SKProductViewController。
You can present a SKProductViewController with the following code: 您可以使用以下代码显示SKProductViewController:
NSDictionary *parameters = [NSDictionary dictionaryWithObject:@"YOURITUNESAPPID" forKey:SKStoreProductParameterITunesItemIdentifier];
SKProductViewController *productViewController = [[SKProductViewController alloc] init];
[self presentViewController:productViewController animated:YES completion:nil]];
This assumes that you're in a UIViewController subclass and know your iTunes application identifier. 假设您在UIViewController子类中,并且知道您的iTunes应用程序标识符。 This will display a model viewController displaying the AppStore entry for that application. 这将显示一个模型viewController,其中显示该应用程序的AppStore条目。
Users are able leave ratings from that viewController. 用户可以从该viewController留下评分。 Haven't been able to write a review though. 不过还没有写评论。
I had the same issue using Appirater, I have partially solved the proplem in this way 我在使用Appirater时遇到了同样的问题,以这种方式部分解决了问题
define the template for iOS7: 定义iOS7的模板:
NSString *templateReviewURLiOS7 = @"itms-apps://itunes.apple.com/app/idAPP_ID";
make this chnges on the rateApp method 在rateApp方法上进行更改
+ (void)rateApp {
.
.
.
// this URL Scheme should work in the iOS 6 App Store in addition to older stores
NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
// iOS 7 needs a different templateReviewURL @see https://github.com/arashpayan/appirater/issues/131
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
}
.
.
.
}
this will open the rate page in iOS6 as was in the past, and the app page in iOS7 这将像过去一样在iOS6中打开费率页面,并在iOS7中打开应用程序页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.