拖泥的iOS博客

iOS应用内评分

2017-02-20  本文已影响735人  梦北_向南

iOS10.3之后,苹果引入一种新的应用内评分评论机制, 用户将可在应用内直接对应用进行评分。

iOS 10.3 introduces a new way to ask customers to provide App Store ratings and reviews for your app.

这一功能将使得开发者更容易得到用户的反馈, 拉进了开发者和用户之间的距离, 对开发者来说确实是一个好消息。

而在功能实现方面, 苹果也帮助我们做到了最简化, 如原文:

Using the SKStoreReviewController API, you can ask users to rate or review your app while they're using it, without sending them to the App Store.

如图所示, 我们可以看到 SKStoreReviewController的相关说明:

故, 需要实现这个功能, 仅需要一行代码即可: [SKStoreReviewController requestReview];

实现步骤:

1、在项目中引入系统库:Storekit.framework;

2、在需要调用此功能的类中导入StoreKit : #import <StoreKit/StoreKit.h>

3、在执行的方法中调用系统方法:[SKStoreReviewController requestReview];

官方文档:

1、class: SKStoreReviewController;

2、method: requestReview

上一篇 下一篇

猜你喜欢

热点阅读