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?
source to share
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.
source to share