APP评分跳转

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

 

posted @ 2016-01-08 17:15  英雄出少年  阅读(117)  评论(0编辑  收藏  举报