ios获取app版本号
来源:互联网 发布:淘宝水印制作软件 编辑:程序博客网 时间:2024/04/29 21:14
看代码的时候看到一句,用于获取.plist文件的版本号
labelVersion.text = [NSString stringWithFormat:@"v%@", [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey]];
比较感兴趣的是后面的参数 kcFBundleVersionKey ,竟然是CFBundle.h已经定于好的属性,下面有这个属性的注释
const CFStringRef kCFBundleVersionKey;
/* The version number of the bundle. For Mac OS 9 style version numbers (for example "2.5.3d5"), */
/* clients can use CFBundleGetVersionNumber() instead of accessing this key directly since that */
/* function will properly convert the version string into its compact integer representation. */
还有好多是kcFXXX开头的Standard Info.plist keys 属性,有兴趣可以自己看一下CFBundle.h,研究一下它们的用法, 3 0
- ios获取app版本号
- ios获取app版本号
- iOS获取App版本号
- swift 获取app版本号及 ios 版本号
- ios开发---获取App版本号
- iOS开发 获取app版本号
- iOS获取APP的版本号
- iOS 获取app的版本号
- iOS获取当前app版本号
- iOS获取app的版本号
- IOS APP 获取版本号等
- IOS 获取APP当前的版本号
- ios获取app当前的版本号
- iOS 获取app版本号、序列号、名称、、、
- iOS开发笔记之获取App版本号
- 获取app版本号
- 获取app versionCode版本号
- 如何获取app版本号
- NYOJ 837 Wythoff Game
- 关于android的animation的xml定义中的android:interpolator属性的含义
- NGUI控件说明(中文) UIButton
- HDU 1198 搜索
- 都是插件惹的祸
- ios获取app版本号
- POJ 3150 Cellular Automaton
- 确定比赛名次
- 【深入探索c++对象模型】C++新手的两种常见误解
- Linux内核设计的艺术-进程1的创建及执行b
- NGUI控件说明(中文) UIToggle
- Android平台的音乐资源管理与播放
- OpenCV:设置图像的感兴趣区域(ROI)
- JavaBean 属性命名规范特例