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"];