title: Setting value in nsuserdefaults
body: <p>I'm new to Objective-C and XCode and I've encountered such a problem. </p>
  
  <p>How do you properly save the value to <code>NSUserDefaults</code>.</p>
  
  <p>I have value in </p>
  
  <pre><code>[_textFields objectAtIndex:2]).text
  </code></pre>
  
  <p>And trying to do this </p>
  
  <pre><code>[[[NSUserDefaults standardUserDefaults] setValue:((UITextField *)[_textFields objectAtIndex:2]).text))  forKey:@"Phone"];
  [[NSUserDefaults standardUserDefaults] synchronize];
  </code></pre>
  
  <p>How do you do it properly?</p>