string CCDevice::getVersionName()
{
return [[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] UTF8String];
}
NSString *developmentVersionNumber = [bundle objectForInfoDictionaryKey:@"CFBundleVersion"];
CFBundleVersion,标识(发布或未发布)的内部版本号。这是一个单调增加的字符串,包括一个或多个时期分隔的整数。
CFBundleShortVersionStri版本号的管理是一个谨慎的事情,希望各位开发者了解其中的意义。
比较小白,更新应用的时候遇到版本号CFBundleShortVersionStri
图片里的 Version 对应的就是CFBundleShortVersionStri
From:http://blog.sina.com.cn/s/blog_8c87ba3b0101a1gd.html