Initial defaults for iPhone user

I set my default app custom settings to accommodate two toggle switches - one for reference, one for sound. They work, however the original values ​​are false even though I set them to YES:

http://i29.tinypic.com/2hpovf9.jpg

I am using BOOL variables to keep track of these values ​​in an application, so I would like to store the YES / NO values. What else do I need to do to get the correct initial values?

+2


source to share


2 answers


I found the answer to this question. Apparently there is an app domain and a registration domain that don't sync when the app is first launched. The solution that worked for me is here:

http://excitabyte.wordpress.com/2009/08/12/keeping-user-defaults-synchronized-with-settings-bundle/



It's not good when you want help and sound when you first launch your application! Come to Apple.

+1


source


Uhm ... Don't configure toggle switches like this:



http://screencast.com/t/bGCGIZara

0


source







All Articles