mayank sahai
mayank sahai

Reputation: 103

How to change color of UITextField in iPhone?

I have placed UITextField in UITableView and my UITableViewCell color is Yellow , normally the background color of UITextField in white I want to change the color of UITextField to yellow or it should be transparent... I have used

[txtfld setBackgroundColor:[UIColor clearColor]]; 

but it's not working - the textfield is appearing in white color.

Upvotes: 1

Views: 2113

Answers (1)

Aurélien Bottazini
Aurélien Bottazini

Reputation: 3309

Is [txtfld setBackgroundColor:[UIColor yellowColor]]; working?

Upvotes: 3

Related Questions