iOS 跳转AppStore更新版本
2018-03-30 本文已影响314人
星星编程
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"]];