在iOS7中对应用内的评分和评论?

问题描述:

我听说iOS7允许用户对该应用内的应用进行评分和评论,从而无需重定向到appstore并离开应用。到目前为止,我只发现了itunes中速率功能的URL链接的差异,如 ITunes审核URL和iOS 7(要求用户评价我们的应用程序)AppStore显示空白页,但不是如何留在应用程序内。

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. 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.

我在我的应用程序中使用Appirater并集成了新的URL和应用程序进入appstore进行费率/审核。

I'm using Appirater in my app and integrated the new url and app goes to appstore for rate/review.

有人可以告诉我这个新功能是否存在以及如何实现它?

Can anybody tell me if this new feature is there and how to implement it?

我认为你正在寻找SKProductViewController。

I think you're looking for the SKProductViewController.

您可以使用以下代码呈现SKProductViewController:

You can present a SKProductViewController with the following code:

NSDictionary *parameters = [NSDictionary dictionaryWithObject:@"YOURITUNESAPPID" forKey:SKStoreProductParameterITunesItemIdentifier];

SKProductViewController *productViewController = [[SKProductViewController alloc] init];
[self presentViewController:productViewController animated:YES completion:nil]];

这假设您在UIViewController子类中并且知道您的iTunes应用程序标识符。这将显示一个模型viewController,显示该应用程序的AppStore条目。

This assumes that you're in a UIViewController subclass and know your iTunes application identifier. This will display a model viewController displaying the AppStore entry for that application.

用户可以从该viewController中保留评级。虽然没能写评论。

Users are able leave ratings from that viewController. Haven't been able to write a review though.