title: UITextField problems in iOS 5 by changing UITextFieldBorderStyle at runtime
body: <p>I'm suddenly having trouble with some UITextFields now that I'm testing on iOS 5 devices, even though I built the app in iOS 5 SDK and already let the bug slip through to release.</p>
  
  <p>I have a textfield that allows input, and when you press a "lock" button, it calls:</p>
  
  <pre><code>textField.enabled = NO;
  textField.borderStyle = UITextBorderStyleNone;
  </code></pre>
  
  <p>The Field "hides" but still acts like a label - important function for the app.</p>
  
  <p>Then you press the "lock" button again and it calls:</p>
  
  <pre><code>textField.enabled = YES;
  textField.borderStyle = UITextBorderStyleRoundedRect;
  </code></pre>
  
  <p>This works perfectly in 4.2/4.3 but in iOS 5 the only thing that appears is the beveled outline of the textfield with no white background color.</p>
  
  <p>Setting .backgroundColor fixes it on iOS 5 but makes an ugly white square on 4.2/4.3.</p>
  
  <p>I didn't see anything about these changes in the API diffs document, what am I missing here??
  Thanks in advance..</p>