Possible Duplicate:
How to display the current project version of my App to the user?
有没有办法判断我的应用程序的版本号?一旦应用程序进入应用store ,它是否会在某个地方提供?
Possible Duplicate:
How to display the current project version of my App to the user?
有没有办法判断我的应用程序的版本号?一旦应用程序进入应用store ,它是否会在某个地方提供?
我相信这已经包含在您的info.plist文件中,可以通过以下代码进行检索:
[NSString stringWithFormat:@"Version %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]];