iOS 11跳转到App Store进行评论

2017-10-13  本文已影响86人  伯牙呀

iOS 11下亲测可用:

- (void)goAppStoreCommentWithAppId:(NSString *)appId {
    NSString *urlString = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app/id%@?mt=8&action=write-review",appId];
    if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
    }
}
上一篇下一篇

猜你喜欢

热点阅读