If you are a lazy coder like me (or you don’t like to code version numbers all over the place) you should use the version number that Apple wants you to specify (in the Info.plist file) whenever you need to display a version number.
A neat macro for that would be:
#define VERSION [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]
Now if anyone can figure out how to generate a build number and get that in a macro, it would be even better
Leave a Reply