国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > iOS > 正文

Xcode 8.3 (iOS 10.3)新增應(yīng)用內(nèi)評(píng)價(jià)API 之 SKStoreReviewController

2019-11-09 16:47:19
字體:
供稿:網(wǎng)友

Allow Users to PRovide Ratings From Within Your App

在iOS 10.3之后,系統(tǒng)提供了一個(gè)SKStoreReviewController類,可以幫助在app內(nèi)部實(shí)現(xiàn)評(píng)價(jià)。App實(shí)現(xiàn)評(píng)價(jià)的調(diào)用方式如下:

調(diào)用方式:

[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


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 讷河市| 宁南县| 同江市| 曲麻莱县| 四平市| 将乐县| 庆阳市| 永兴县| 毕节市| 汪清县| 汶上县| 比如县| 育儿| 塔城市| 包头市| 汪清县| 北辰区| 灵丘县| 甘肃省| 天祝| 洪江市| 舟山市| 敦煌市| 大庆市| 清镇市| 曲周县| 茶陵县| 陵水| 泗水县| 若尔盖县| 邢台市| 山东| 新巴尔虎右旗| 宁化县| 延庆县| 芮城县| 临泽县| 新干县| 永清县| 清丰县| 沿河|