equal
deleted
inserted
replaced
47 } |
47 } |
48 |
48 |
49 -(void) viewWillDisappear:(BOOL)animated { |
49 -(void) viewWillDisappear:(BOOL)animated { |
50 [super viewWillDisappear:animated]; |
50 [super viewWillDisappear:animated]; |
51 [self.settingsDictionary writeToFile:SETTINGS_FILE() atomically:YES]; |
51 [self.settingsDictionary writeToFile:SETTINGS_FILE() atomically:YES]; |
|
52 |
|
53 // we save the sound settings to respect that flag everywhere |
|
54 NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; |
|
55 [prefs setObject:[NSNumber numberWithBool:[[self.settingsDictionary objectForKey:@"sound"] boolValue]] forKey:@"audio"]; |
|
56 [prefs synchronize]; |
52 } |
57 } |
53 |
58 |
54 #pragma mark - |
59 #pragma mark - |
55 -(void) switchValueChanged:(id) sender { |
60 -(void) switchValueChanged:(id) sender { |
56 UISwitch *theSwitch = (UISwitch *)sender; |
61 UISwitch *theSwitch = (UISwitch *)sender; |