iOS 跳转到AppStore评论区

 1     NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",@"414478124"];
 2     NSURL * url = [NSURL URLWithString:str];
 3     
 4     if ([[UIApplication sharedApplication] canOpenURL:url])
 5     {
 6         [[UIApplication sharedApplication] openURL:url];
 7     }
 8     else
 9     {
10         NSLog(@"can not open");
11     }

 

posted on 2015-08-05 10:04  zcz1513  阅读(273)  评论(0编辑  收藏  举报

导航