检查正在使用的应用程序的版本 [英] Check what version of the app is being used

查看:104
本文介绍了检查正在使用的应用程序的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

有没有办法检查我的应用程序的版本号?

Is there a way to check the version number of my app? Is it supplied somewhere once the app is in the App Store?

推荐答案

我相信这是包含在你的info.plist 文件,并且可以使用以下代码检索:

I believe this is included in your info.plist file, and can be retrieved with code like this:

[NSString stringWithFormat:@"Version %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]];

这篇关于检查正在使用的应用程序的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆