Xcode 8.3 (iOS 10.3)新增应用内评价API 之 SKStoreReviewController
2017-02-08 17:23
573 查看
Allow Users to Provide Ratings From Within Your App
在iOS 10.3之后,系统提供了一个SKStoreReviewController类,可以帮助在app内部实现评价。App实现评价的调用方式如下:
Note
When you call this method while your app is still in development mode, a rating/review request view is always displayed so that you can test the user interface and experience. However, this method has no effect when you call it in an app that you distribute using TestFlight.
When you call this method in your shipping app and a rating/review request view is displayed, the system handles the entire process for you. In addition, you can continue to include a persistent link in the settings or configuration screens of your app that deep-links to your App Store product page. To automatically open a page on which users can write a review in the App Store, append the query parameter action=write-review to your product URL.
苹果官方API链接:
https://developer.apple.com/reference/storekit/skstorereviewcontroller/2851536-requestreview?language=objc
在iOS 10.3之后,系统提供了一个SKStoreReviewController类,可以帮助在app内部实现评价。App实现评价的调用方式如下:
调用方式:
[SKStoreReviewController requestReview];
效果图
官方注解讨论
Although you should call this method when it makes sense in the user experience flow of your app, the actual display of a rating/review request view is governed by App Store policy. Because this method may or may not present an alert, it’s not appropriate to call it in response to a button tap or other user action.Note
When you call this method while your app is still in development mode, a rating/review request view is always displayed so that you can test the user interface and experience. However, this method has no effect when you call it in an app that you distribute using TestFlight.
When you call this method in your shipping app and a rating/review request view is displayed, the system handles the entire process for you. In addition, you can continue to include a persistent link in the settings or configuration screens of your app that deep-links to your App Store product page. To automatically open a page on which users can write a review in the App Store, append the query parameter action=write-review to your product URL.
苹果官方API链接:
https://developer.apple.com/reference/storekit/skstorereviewcontroller/2851536-requestreview?language=objc
相关文章推荐
- iOS10.3的应用内评分SKStoreReviewController
- 【iOS】iOS10.3新增API:应用内评分
- iOS 集成React Native到现有iOS应用(Ficow本人实测,Xcode 8.3,iOS 10.3)
- iOS10.3 app内好评详解 SKStoreReviewController
- ios10.3app内好评SKStoreReviewController以及其他方式好评
- iOS 在应用内展示App Store 【StoreKit,SKStoreProductViewController】
- iOS 6 SDK: 在应用内展示App Store 【StoreKit,SKStoreProductViewController】
- 即时通讯开发之调用API接口快速在IOS平台的即时通讯应用开发
- 使用XCode联机调试你的iOS应用
- xcode4.3.2开发iOS应用之HelloWorld
- xcode反汇编调试iOS模拟器程序(四)自动断点应用之NSNotificationCenter
- iOS 5 编程-应用选项卡栏控制器(UITabBarController)创建App
- 【应用赏析】ArcGIS API for iOS在俄勒冈大学校园中的创新应用
- 在xcode 4.2.1中使用skd 5.0 编译出在ios 4.3或者其他版本里面可以用的应用
- iOS UIViewController 应用要点
- ios开发—利用xcode tabbed模块快速开发标签栏应用
- iOS应用之UITabBarController
- [ios] xcode 4.2 创建 adhoc 发布应用测试方法
- [ios] xcode 4.2 创建 adhoc 发布应用测试方法
- iOS 5 新增的UIPageViewController 简单示例