NSString *appstoreUrlString = [NSString stringWithFormat:
m_appleID ];//这是你们自己app在iTunes的id,可以在iTunes查询到
NSURL * url = [NSURL URLWithString:appstoreUrlString];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
[[UIApplication sharedApplication]openURL:url];
}
else
{
NSLog(@"can not open");
}
//跳转到AppStore页面
iOS10.3以后支持APP内进行评论(注意:只能是发布环境才能提交,测试环境不行的)
#import <StoreKit/StoreKit.h>
if([SKStoreReviewController respondsToSelector:@selector(requestReview)]){
[SKStoreReviewController requestReview];
}else{
NSString * nsStringToOpen = [NSString stringWithFormat:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:nsStringToOpen]];
}