# Initial values for NSUserDefaults aka first run values

If you want initial values to NSUserDefaults, you can use registerDefaults method.

Consider that the first time you access the property with some key name the value will be either nil for objects, false for booleans or 0 for numbers.

So, prepare a plist file in your bundle that contains the default preferences and then use that plist to register the defaults.

&lt;code&gt;NSString *defaultPrefsFile = [[NSBundle mainBundle] pathForResource:@&quot;defaultPrefs&quot; ofType:@&quot;plist&quot;];