版权声明:出自MajorLMJ技术博客(http://www.jianshu.com/users/37f2920f6848/)的原创作品
获取infoDictionary中某个key对应的值的方法
[[[NSBundle mainBundle] infoDictionary] valueForKey:@"key"];
[[[NSBundle mainBundle] objectForInfoDictionaryKey:@""key];
应用名
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
版本号
[[NSBundle mainBundle] objectForInfoDictonaryKey:@"CFBundleShortVersionString"];
build号
[[NSBundle mainBundel] objectForInfoDictionaryKey:@"CFBundleVersion"];
Bundle id
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"];