Created
June 1, 2011 15:22
-
-
Save aokj4ck/1002534 to your computer and use it in GitHub Desktop.
Retrieves the application name and version number which are set in info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static NSString *getAppNameAndVersionNumber() { | |
NSString *number = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]; | |
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"]; | |
NSString *nameAndVersion = [NSString stringWithFormat:@"%@_%@", appName, number]; | |
return nameAndVersion; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment