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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-10-2009, 12:26 PM   #5 (permalink)
FlyingDiver
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

There's nothing obviously wrong with your code, other than this is redundant:

Code:
NSUserDefaults * wheelPrefs = [NSUserDefaults standardUserDefaults];
NSUserDefaults * carPrefs = [NSUserDefaults standardUserDefaults];
You only need one prefs pointer object, not one for each preference you're retrieving/saving.

From what little you're showing, it looks like you should be saving and restoring the current value for each of those two pickers. Is something else happening?

joe
FlyingDiver is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,838
Threads: 89,210
Posts: 380,647
Top Poster: BrianSlick (7,129)
Welcome to our newest member, hariky007
Powered by vBadvanced CMPS v3.1.0

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