title: Best way to clear a UITextField
body: <p>For an <code>IBOutlet UITextField</code>, does it matter as far as memory management or other reasons how you clear the text value?</p>
  
  <pre><code>textFieldX.text = nil
  </code></pre>
  
  <p>or</p>
  
  <pre><code>textFieldX.text = @"";
  </code></pre>
  
  <p>In objective-c it is acceptable to message a <code>nil</code> object and <code>@""</code> is a static <code>NSString *</code>. I'm not sure if every <code>@""</code> points to the same object in memory or if it allocates a bunch of 1 byte null terminated strings.</p>
  
  <p>Not a big deal, just thought I'd ask the community. Thanks.</p>