If you just want to set up some values at the first time your app runs,
Put this code in app delegate and use this method in didFinishLaunchingWithOptions method, or you can put this code in your view controller and use this method in viewDidLoad method:)
- (void)setDefaultInfoValue {
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"everLaunched"]) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"everLaunched"];
//put you code here
NSUserDefaults *myUD = [NSUserDefaults standardUserDefaults];
[myUD setObject:@"5" forKey:@"Extra"]; // 5 giving 4 extra diaries
[myUD setObject:@"0" forKey:@"CatchingUp"]; // it's a live diary
[myUD setObject:@"888" forKey:@"SendingSuccess"];
[myUD synchronize];
}
}