Это код в моем 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:
finalPath
иsettingsDict
. Также убедитесь, что Settings.bundle копируется в пакет приложений. - person djromero   schedule 09.12.2011