Reply to comment
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
17 weeks 6 days ago
23 weeks 1 day ago
26 weeks 3 days ago
27 weeks 3 days ago
36 weeks 2 days ago
36 weeks 2 days ago
36 weeks 3 days ago
36 weeks 4 days ago
38 weeks 2 days ago
38 weeks 3 days ago