iPhone UITextField controlling background color

Posted by Stephen Joy on Stack Overflow See other posts from Stack Overflow or by Stephen Joy
Published on 2009-12-28T21:13:48Z Indexed on 2010/04/27 19:13 UTC
Read the original article Hit count: 789

Greetings,

I am unable to control the background color of a UITextField with a borderStyle= UITextBorderStyleRoundedRect. With this border style the backgroundColor property only seems to control a very narrow line along the inner edge of the rounded rectangle. The rest of the field remains white.

However, if the borderStyle is set to UIBorderStyle=UITextBorderStyleBezel then the entire background of the UITextField is controlled by its backgroundColor property.

Is this a feature?

Is there a way to control the backgroundColor of a UITextField with a borderStyle=UITextBorderStyleRoundedRect?

Thanks,

Stephen

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitextfield