你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發綜合 >> Xcode 8.3 (iOS 10.3)新增使用內評價API 之 SKStoreReviewController

Xcode 8.3 (iOS 10.3)新增使用內評價API 之 SKStoreReviewController

編輯:IOS開發綜合

Allow Users to Provide Ratings From Within Your App

在IOS 10.3之後,零碎提供了一個SKStoreReviewController類,可以協助在app外部完成評價。App完成評價的調用方式如下:

調用方式:
[SKStoreReviewController requestReview];
效果圖

Xcode 8.3 (IOS 10.3)新增應用內評價API 之 SKStoreReviewController

官方注解討論

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

【Xcode 8.3 (iOS 10.3)新增使用內評價API 之 SKStoreReviewController】的相關資料介紹到這裡,希望對您有所幫助! 提示:不會對讀者因本文所帶來的任何損失負責。如果您支持就請把本站添加至收藏夾哦!

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved