1、获取版本号
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
NSString *appCurVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
self.versionLabel.text=[NSString stringWithFormat:@"当前版本:%@",appCurVersion];
2、跳转到AppStore
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"itms-apps://url.cn/5JbWAFe"]];
网友评论