title: how to set uitextfield bordercolor in iphone application
body: <p>how to set uitextfield and <code>UITextView</code> border color programmatically , when we enter or edit in textfield and textview. </p>
  
  <p>I used this code, but doesn't change the border color for the <code>UITextView</code>.</p>
  
  <pre><code>- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
  {
      textField.layer.borderColor=[[UIColor cyanColor] CGColor];
  }
  </code></pre>