进入appstore评分页面

NSString *strUrl = nil;

NSString *addressOnePart = @"itms-apps://ax.itunes.apple.com/WebObjects";

NSString *addressTwoPart = @"/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=";

 

float version= [[UIDevice currentDevice].systemVersion floatValue];

if (version >=7.0)

{

strUrl = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", @"appId"];

}

else

{

strUrl = [NSString stringWithFormat:@"%@%@%@",addressOnePart,addressTwoPart,@"appId"];

}

 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:strUrl]];

posted on 2015-01-19 15:20  best_cook  阅读(153)  评论(0编辑  收藏  举报

导航