views:

901

answers:

2

Hello! Could anybody tell me the truth :) I have really great wish to set my own color to UITextField border. But I could find possibility to change the border line style only. Please, i'll wait any answer

+1  A: 

Set the background property of the text field.

NSResponder
A: 

I've used background property to set background color in such way:

self.textField.backgroundColor = textFieldColor;

but I have to change color of UITextField border too. And my question was about how to change borders'color.

dasha
-1 if you have a comment on an answer, add a comment. don't add an answer.
Dave DeLong
RTFM. You change the border's color by setting the background property. Not the backgroundColor, the background image. It needs to be a stretchable image.
NSResponder
NSResponder, thanks a lot!
dasha