版權聲明:出自MajorLMJ技術博客(http://www.lxweimin.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"];