这是我的AppDelegate中的代码:
NSString *pathStr = [[NSBundle mainBundle] bundlePath];
NSString *settingsBundlePath = [pathStr stringByAppendingPathComponent:@"Settings.bundle"];
NSString *finalPath = [settingsBundlePath stringByAppendingPathComponent:@"Root.plist"];
NSDictionary *settingsDict = [NSDictionary dictionaryWithContentsOfFile:finalPath];
NSArray *prefSpecifierArray = [settingsDict objectForKey:@"PreferenceSpecifiers"];prefSpecifiersArray设置为0x0 < nil >。我真的不知道这怎么可能!这是我的Root.plist:

发布于 2011-12-17 05:31:33
直到用户第一次打开设置,settings.bundle中的值才会实际加载到NSUserDefaults中。默认情况下,它们处于关闭状态。一旦用户打开设置包,他们将为您填写。
https://stackoverflow.com/questions/8443639
复制相似问题