1.获取app的info.plist详细信息
版本号:Bundle version
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
应用标识:Bundle identifier
NSString *bundleId = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
应用名称:Bundle display name
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
Bundle name
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
本内容转自:http://www.cnblogs.com/xiaodao/archive/2012/07/03/2574703.html
本文介绍了如何使用Objective-C从iOS应用程序的info.plist文件中读取版本号、应用标识及应用名称等关键信息。
2146

被折叠的 条评论
为什么被折叠?



