title: How to clear NSUserDefaults Data?
body: <p>When I choose a language from language selection list in my app then it shows that language which I selected previously. If I clear the app from my simulator stack or clear it from xcode then run the project, after that it goes ok, and if I want to change the language again then I faced same problem. My code is given below:</p>
  
  <pre><code>- (IBAction)English:(id)sender {
  
  NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
  [userDefault setObject:[NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];
  [userDefault synchronize];
  
  ChooseItemVC *civc = (ChooseItemVC*)[self.storyboard instantiateViewControllerWithIdentifier:@"ChooseItemVC"];
  [self.navigationController pushViewController:civc animated:YES];
  }
  </code></pre>
  
  <p>Another language selection code:</p>
  
  <pre><code>- (IBAction)Arabic:(id)sender {
  
  NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
  [userDefault setObject:[NSArray arrayWithObjects:@"ar", nil] forKey:@"AppleLanguages"];
  [userDefault synchronize];
  
  ChooseItemVC *civc = (ChooseItemVC*)[self.storyboard instantiateViewControllerWithIdentifier:@"ChooseItemVC"];
  [self.navigationController pushViewController:civc animated:YES];
  
  }
  </code></pre>