I have to following NSUserDefaults which I wish to be set to yes on the first time the user launches the app? How would I go about doing this? I'm aware it needs to be placed into AppDelegate however I can't work out how to do this.
NSUserDefaults *defaults =[NSUserDefaults standardUserDefaults];
[self.truthonoff setOn:[[defaults objectForKey:@"truthonoff"] boolValue] animated:YES];
[self.truthonoff addTarget:self action:@selector(stateSwitched:) forControlEvents:UIControlEventValueChanged];
[self.dareonoff setOn:[[defaults objectForKey:@"dareonoff"] boolValue] animated:YES];
[self.dareonoff addTarget:self action:@selector(stateSwitcheddare:) forControlEvents:UIControlEventValueChanged];
//other options
[self.shakesonoff setOn:[[defaults objectForKey:@"shakesonoff"] boolValue] animated:YES];
[self.shakesonoff addTarget:self action:@selector(stateSwitchedshakes:) forControlEvents:UIControlEventValueChanged];
[self.soundonoff setOn:[[defaults objectForKey:@"soundonoff"] boolValue] animated:YES];
[self.soundonoff addTarget:self action:@selector(stateSwitchedsound:) forControlEvents:UIControlEventValueChanged];