Get the Build Version of your iPhone app at runtime

This is how to get the version number of your app at run time. I find this helpful in to use in the “about” section of my apps. The version number is read from your apps info.plist file.

NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];