iOS 跳转AppStore更新版本

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"]];

你可能感兴趣的:(iOS 跳转AppStore更新版本)