NSUserDefaults not getting my Settings.bundle defaults

I had an problem earlier this week, where the first time I install my app on the simulator or on the device, it would not get the settings from my Settings.bundle. All the strings would appear nil. I would only be able to get the strings correctly if I modify the values from my app’s Settings panel.

I found the solution here.

I patterned my viewDidLoad function from the applicationDidFinishLaunching function in the AppDelegate.m example in the Xcode documentation.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s