国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 鹤庆县| 井陉县| 额尔古纳市| 揭东县| 景东| 自治县| 道真| 寿光市| 新野县| 昭平县| 玉山县| 连江县| 平度市| 渝北区| 剑河县| 荔浦县| 无棣县| 兰考县| 建宁县| 汽车| 巴彦县| 阿巴嘎旗| 周宁县| 阿克苏市| 清远市| 桐梓县| 富民县| 汉源县| 林甸县| 兰考县| 新乡市| 鹤壁市| 涿州市| 扶余县| 乡城县| 文昌市| 内江市| 万载县| 隆昌县| 太康县| 婺源县|