Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-09-2009, 01:36 AM   #2 (permalink)
sunfire
Registered Member
 
Join Date: Feb 2009
Posts: 39
sunfire is on a distinguished road
Default

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...
sunfire is offline   Reply With Quote
 

» Advertisements
» Online Users: 589
19 members and 570 guests
Alexj17, baja_yu, chenpo, dapis, Domele, GVD, hemcii, jerrywenwu, LooN3y, mediaspree, nanijoe, Newbie123, Rudy, sanlows, Shiroboi, smith288, soydesu, yuonneru49
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,544
Threads: 93,725
Posts: 401,261
Top Poster: BrianSlick (7,954)
Welcome to our newest member, soydesu
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:21 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.