iOS获取plist文件属性值的方法
来源:互联网 发布:妩媚的女生 知乎 编辑:程序博客网 时间:2024/06/06 16:29
在项目中,很多的属性都是在plist文件中设置的,在开发过程中,经常会需要获取这些属性值,下面是获取plist属性值的方法
NSDictionary *bundleDic = [[NSBundle mainBundle] infoDictionary];
NSString *version = [bundleDic objectForKey:@"CFBundleVersion"];
其中,CFBundleVersion为plist文件的key。plist文件的所有键值如下:
CFBundleDevelopmentRegion,
DTPlatformName,
CFBundleVersion,
LSRequiresIPhoneOS,
CFBundleSignature,
CFBundleIdentifier,
CFBundleExecutable,
CFBundleDisplayName,
CFBundleShortVersionString,
CFBundleName,
CFBundleSupportedPlatforms,
CFBundlePackageType,
NSBundleResolvedPath,
CFBundleInfoDictionaryVersion,
UIRequiredDeviceCapabilities,
UISupportedInterfaceOrientations,
NSBundleInitialPath,
CFBundleInfoPlistURL,
CFBundleExecutablePath,
DTSDKName,
UIDeviceFamily
原文:http://blog.csdn.net/qijianli/article/details/7759659
- IOS获取plist文件属性值的方法
- IOS获取plist文件属性值的方法
- iOS获取plist文件属性值的方法
- java获取文件属性的方法
- IOS获取文件属性
- iOS开发之plist文件的获取
- iOS中plist的快速生成方法
- iOS 获取文件属性 NSDirectoryEnumerator 文件大小
- iOS获取plist全路径
- IOS获取plist文件信息
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的…
- iOS中的地理位置的获取及plist设置
- iOS从info.plist获取项目的名称及版本号
- Linux下文件属性的获取
- 黑马程序员android 拖放操作
- prolog小案例二
- 常用的gdb命令
- poj1743 Musical Theme(后缀数组+二分判定)
- 修改Oracle数据库字符集
- iOS获取plist文件属性值的方法
- LlistView的四种优化的方式
- 使用jQuery判断IE11
- java乱码总结
- Struts 2 interceptor stack example
- oracle rman 定时备份脚本
- linux查看系统负载
- 黑马程序员android 应用程序资源 以及访问
- Spring MVC中使用@Autowired实现自动注入