iOS11之前,我们的常用写法是:
NSString *itunesurl = @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=APPID&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:itunesurl]];
APPID是在iTunesConnect创建应用时自动生成的ID
iOS11升级以后,发现上面方法不灵了。那么我们用这个方法替代:
NSString *itunesurl = @"http://itunes.apple.com/cn/app/idXXXXXX?mt=8&action=write-review";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:itunesurl]];