redribben

defaults

Jan 8th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "BMSetup.h"
  2.  
  3. @implementation BMSetup {
  4. //    NSUserDefaults* uD;
  5. }
  6.  
  7. - (void)initDefaults {
  8.     NSLog(@"Beginning Setups");
  9.     NSUserDefaults *uD = [NSUserDefaults standardUserDefaults];
  10.     if (![uD objectForKey:@"Call Alert"]) {
  11.         [uD setObject:@"On" forKey:@"Call Alert"];
  12.         [uD synchronize];
  13.         NSLog(@"Setup Call Alert");
  14.     }
  15.    
  16.     NSLog(@"Setups Done");
  17.  
  18. }
  19.  
  20. @end
Advertisement
Add Comment
Please, Sign In to add comment