Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access the application version?

I would like to know how can I access the iOS application target version.

This number : http://img11.hostingpics.net/pics/146187Capturedcran20110728111355.png

Thanks

like image 760
Nielsou Hacken-Bergen Avatar asked Feb 24 '23 10:02

Nielsou Hacken-Bergen


1 Answers

NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary];
NSString* versionNum = [infoDict objectForKey:@"CFBundleVersion"];

This will give the version number. Similarly you can get other attributes as well.

like image 126
Praveen S Avatar answered Mar 02 '23 17:03

Praveen S