问题
I want people to rate my app with stars inside the app itself, so without a SKStoreProductView (or whatever). So if they tap "rate" then there is an extra view where they can rate my app with 1 to 5 stars. How do i implement that?
thanks a lot
回答1:
Possible Now after iOS 10.3+
The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.
Swift
import StoreKit
func someFunction() {
SKStoreReviewController.requestReview()
}
Objective-C
#import <StoreKit/StoreKit.h>
-(void)someFunction {
[SKStoreReviewController requestReview];
}
SKStoreReviewController not working
It is only enabled after the app is downloaded from the app store.
During development, or even release build, it is grayed out.
回答2:
EDIT:
Possible Now after iOS 10.3+
The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.
import StoreKit
func someFunction() {
SKStoreReviewController.requestReview()
}
Was not possible until recent iOS, there was no API.
EDIT: What you see in Blek is a GKGameCenterViewController with the GKGameCenterViewControllerStateAchievements
来源:https://stackoverflow.com/questions/25119554/in-app-rating-with-stars-without-opening-appstore