So If I'm reading your question right you want to know how to pull the BOOL value from the NSUserDefaults. Since NSUserDefaults is nothing more than a dictionary these should work...
NSUserDefaults *Prefs = [NSUserDefaults standardUserDefaults];
// This will set it the defaults value
[prefs setBool:YES forKey:@"myCheckBoxValue"];
// This will get the BOOL value and set the checkboxButton BOOL
[checkboxButton setSelected:[prefs boolForKey:@"myCheckBoxValue"]];
I hope this helps...
|