42

Possible Duplicate:
How to display the current project version of my App to the user?

Is there a way to check the version number of my app? Is it supplied somewhere once the app is in the App Store?

Community
  • 1
  • 1
Marty
  • 5,926
  • 9
  • 53
  • 91

1 Answers1

142

I believe this is included in your info.plist file, and can be retrieved with code like this:

[NSString stringWithFormat:@"Version %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]];
Brian Lyttle
  • 14,558
  • 15
  • 68
  • 104
  • 1
    Do you now how to extract exactly version from this `NSTaggedPointerString`? For me it is returning `Version 1.0`, not `1.0` which is expected – kisileno Jul 30 '16 at 05:48
  • 7
    You should read the code, the code above is adding the "Version" String in the result. – Adriana Sep 21 '16 at 12:29