让我们回到项目设置页面,区分一下
代码如下,一般都是写在AppDelegate
//版本号CFBundleShortVersionString不可改
NSString*shotVersion = [infoDicobjectForKey:@"CFBundleShortVersionString"];
//发布版本号CFBundleVersion不可改
NSString*appVersion = [infoDicobjectForKey:@"CFBundleVersion"];
NSLog(@"内测版本号是%@,发布版本号是%@",shotVersion,appVersion);
下边则是跳转到苹果商店下载页面/评论页面(被不完全遮住的部分是你申请的APPID,你懂的)
//苹果商店下载页面
NSString*str = [NSStringstringWithFormat:@"itms-apps://itunes.apple.com/app/id%d",1024XXXXX];
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:str]];
//苹果商店评论页面
NSString*str = [NSStringstringWithFormat:
@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%d&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8",1024XXX];
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:str]];