Skip to content

Instantly share code, notes, and snippets.

@sendoa
Created November 23, 2012 12:52
Show Gist options
  • Save sendoa/4135483 to your computer and use it in GitHub Desktop.
Save sendoa/4135483 to your computer and use it in GitHub Desktop.
Leer valores de Info.plist desde código
# http://mobiledevelopertips.com/core-services/read-info-plist-key-value-pairs.html
NSNumber *prefSet = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"PreferencesSet"];
NSLog(@"PreferencesSet: %@", prefSet);
NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
NSLog(@"CFBundleVersion: %@", version);
NSArray *customURL = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleURLTypes"];
debug(@"Custom URL: %@", customURL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment