Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static NSDictionary *settings;
- + (id)settingsValueForKeyPath:(NSString*)keyPath
- {
- if (settings == nil) {
- NSString *plistPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"settings.plist"];
- settings = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
- }
- return [settings valueForKeyPath:keyPath];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement