我能够在应用程序商店中使用IOS 10打开评论页面,但在IOS 11中不再打开。
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=xxxxxxxx&pageNumber=0&sortOrdering=2&mt=8"]]];
如何在IOS 11中完成?
答案 0 :(得分:3)
不推荐使用URL打开审阅页面的方法。从iOS 10.3及更高版本开始,Apple指示开发人员使用SKStoreReviewController
:
// Import the store kit @import StoreKit // Use the controller to open the review URL [SKStoreReviewController requestReview];
:一个对象,用于控制向用户请求App Store评分和评论的过程。
Objective-C使用代码:
{{1}}