futuretap/InAppSettingsKit — Issue #99: created Default userDefault.plst, but not readed
Author: kohdesmond
Created: 2011-11-14 01:45:16+00:00
State: open

Hi, i have created

// Load the default values for the user defaults
NSString* pathToUserDefaultsValues = [[NSBundle mainBundle]
pathForResource:@"userDefaults"
ofType:@"plist"];
NSDictionary* userDefaultsValues = [NSDictionary dictionaryWithContentsOfFile:pathToUserDefaultsValues];

// Set them in the standard user defaults
[[NSUserDefaults standardUserDefaults] registerDefaults:userDefaultsValues];

in my application didFinishLaunching.

tried to read it, all return null.

what data structural shall i put in for the userDefaults.plist, all i wan is to set all my toggle switch to YES/1.

thanks for reading it.