IOS获取plist文件属性值的方法
来源:互联网 发布:mysql error 1044 编辑:程序博客网 时间:2024/05/22 00:10
在项目中,很多的属性都是在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
- 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下文件属性的获取
- 利用ssh传输文件
- 支持多线程的内存分配器__gnu_cxx::__mt_alloc
- IOS开发获得设备类型和系统版本号
- NO.1目前的水平
- NYOJ 题目5 Binary String Matching
- IOS获取plist文件属性值的方法
- 60个必会的命令
- 心得体会转自http://blog.csdn.net/lyy289065406/article/details/6642572
- fedora20 安装XMind
- 【读书笔记-数据挖掘概念与技术】高级模式挖掘
- 《大教堂与集市》
- 算法整理(三):插入排序
- 各种数据库驱动名及连接字符串
- jQuery之map()和get()