Get information from Info.plist
Sometimes, you may want to get the version number of your application to show it in the about page. It is bad idea to hardcode your version number in your code rather than get the correct version number from the Info.plist.
To get the version number from Info.plist, we can use the following code:
NSString *verStr = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
that we can also use this method to get other information from Info.plist like the bundle name, display name and bundle identifier.
Submitted by water on Wed, 2009-11-25 08:03

Recent comments
1 week 2 days ago
1 week 2 days ago
1 week 4 days ago
3 weeks 2 days ago
3 weeks 3 days ago
3 weeks 4 days ago
3 weeks 4 days ago
3 weeks 5 days ago
4 weeks 10 hours ago
4 weeks 1 day ago