0

The CFBundleVersion key retrieves the "Build" number set in Xcode 4, but not the "Version".

I want to get the version string that users see on the App Store. Is there a different key for this?

NSString *appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
dsgriffin
  • 66,495
  • 17
  • 137
  • 137
openfrog
  • 40,201
  • 65
  • 225
  • 373

1 Answers1

1

Have you tried using CFBundleShortVersionString?

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

dsgriffin
  • 66,495
  • 17
  • 137
  • 137