iOS从info.plist 获取项目的…
来源:互联网 发布:python 汉明距离 编辑:程序博客网 时间:2024/05/16 14:53
NSString *executableFile = [[[NSBundle mainBundle] infoDictionary]objectForKey:(NSString *)kCFBundleExecutableKey];
还有其它很多信息可由infoDictionary获得,以下是官方文档里的说明:
information Property List Keys
Standard keys found in a bundle’s information property listfile.
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”), clientscan 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 thelproj 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 isusually localized.
Available in iOS 2.0 and later.
Declared in CFBundle.h.
kCFBundleLocalizationsKe
Allows an unbundled application that handles localization itself tospecify which localizations it has available.
Available in iOS 2.0 and later.
Declared in CFBundle.h.
Declared In
CFBundle.h
http://danal.blog.51cto.com/3353275/655317
- iOS从info.plist 获取项目的…
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist 获取项目的名称及版本号
- iOS从info.plist获取项目的名称及版本号
- iOS 的info.plist
- iOS项目的Info.plist的一些设置mark
- iOS项目中Info.plist文件是干什么的?
- 获取info.plist当中的命名空间
- IOS Info.plist中常用的key
- iOS的网络配置info.plist
- 获取info.plist文件
- IOS Info.plist
- IOS Info.plist
- IOS-info.plist详解
- IOS info.plist
- ios info.plist 详解
- ios开发 网络编程HTTP/FTP连接
- java的jdk配置与helloworld相关整理
- iOS判断是ipad还是iphone
- Socket编程——使用多线程实现多客户端的通信
- 如何使用iAd在应用程序中展示Banne…
- iOS从info.plist 获取项目的…
- ios系统声音编码表
- Golang包管理工具Glide,你值得拥有
- 高效使用你的Xcode
- 发布iOS应用(xcode5)到App St…
- iOS7下隐藏status bar的详细研究
- Hbase+hadoop在linux下的配置安装
- iOS App进入后台获取更…
- iOS 给UILabel文字加下划线…