美文网首页
iOS 跳转AppStore更新版本

iOS 跳转AppStore更新版本

作者: 星星编程 | 来源:发表于2018-03-30 16:17 被阅读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"]];

相关文章

网友评论

      本文标题:iOS 跳转AppStore更新版本

      本文链接:https://www.haomeiwen.com/subject/tiuicftx.html