A API that allows users to score app without having to open AppStore

The implementation effect is shown in figure

A API that allows users to score app without having to open AppStore

Codeļ¼š

If ([SKStoreReviewController respondsToSelector:@selector (requestReview))] {

[SKStoreReviewController requestReview];

}else{

NSString * nsStringToOpen = [NSString stringWithFormat: @ action=write-review @ itms-apps://itunes.apple.com/app/id%@? “,” 1041804461 “]; / / replace the corresponding APPID[[UIApplication sharedApplication] openURL:[NSURL URLWithString:nsStringToOpen]];

}

Note:

Since this API supports only iOS10.3+, you should do version judgment first, or jump below Appstore to score
after iOS10.3

According to Apple’s official documents, in the TestFlight environment will not pop the scoring box.

The contents of the bomb box can be changed. Please refer to: Apple official document

Reference article: http://blog.csdn.net/dolacmeng/article/details/70171548

Click here to see the author’s other article,

Welcome to reprint, reproduced, please indicate the source: http://www.jianshu.com/p/b92b2f129413

Implementation effect as shown: