Check what version of the app is being used [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-03 05:32:08

问题


Possible Duplicate:
How to display the current project version of my App to the user?

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


回答1:


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


来源:https://stackoverflow.com/questions/6164370/check-what-version-of-the-app-is-being-used

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!