iOS从info.plist 获取项目的名称及版本号
来源:互联网 发布:焊楼梯尺寸怎么算法 编辑:程序博客网 时间:2024/04/30 06:08
NSString *executableFile = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey];
还有其它很多信息可由infoDictionary获得,以下是官方文档里的说明:
information Property List Keys
Standard keys found in a bundle’s information property list file.
const CFStringRef kCFBundleInfoDictionaryV
const CFStringRef kCFBundleExecutableKey;
const CFStringRef kCFBundleIdentifierKey;
const CFStringRef kCFBundleVersionKey;
const CFStringRef kCFBundleDevelopmentRegi
const CFStringRef kCFBundleNameKey;
const CFStringRef kCFBundleLocalizationsKe
Constants
kCFBundleInfoDictionaryV
The version of the information property list format.
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleExecutableKey
The name of the executable in this bundle (if any).
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleIdentifierKey
The bundle identifier.
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleVersionKey
The version number of the bundle.
For Mac OS 9 style version numbers (for example “2.5.3d5”), clients can use CFBundleGetVersionNumber
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleDevelopmentRegi
The name of the development language of the bundle.
When CFBundle looks for resources, the fallback is to look in the lproj whose name is given by the kCFBundleDevelopmentRegi
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleNameKey
The human-readable name of the bundle.
This key is often found in the InfoPlist.strings since it is usually localized.
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleLocalizationsKe
Allows an unbundled application that handles localization itself to specify which localizations it has available.
Available in iOS 2.0 and later.
Declared in CFBundle.h.
Declared In
CFBundle.h
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist获取项目的名称及版本号
- iOS从info.plist 获取项目的…
- 获取iOS项目名称及版本号
- 获取ios项目名称及版本号
- 获取iOS项目名称及版本号
- 获取iOS项目名称及版本号
- 获取iOS项目名称及版本号的方法
- 获取info.plist当中版本号
- iOS开发技巧之:获取iOS项目名称及版本号
- 73.获取iOS项目名称及版本号 Build版本
- 获取iOS项目名称及版本号以及网络类型的方法
- iOS 的info.plist
- php获取浏览器的名称,及版本号
- iOS项目的Info.plist的一些设置mark
- 软件工程 --软件工程用图
- vs2008连接MySQL,采用C API方式
- C# 操作MSSQL数据库类(winform)
- Android中view的Touch事件传递顺序
- 买手机的注意事项(不断补充)
- iOS从info.plist 获取项目的名称及版本号
- 用补码表示整数及加减运算
- cocos2d中的anchorPoint
- Linux中用ALSA驱动声卡流程详解
- 后缀数组+RMQpoj3693
- 中文555句
- HDU 4421 2-SAT
- 老调重谈,关于java的环境变量配置
- 判断一个数组是否为二叉树的后序遍历