How can I programatically change the backgroundColor of an UITextField that sits in a UITableViewCell?
Setting the UITextField.backgroundColor doesn't seem to work.
How can I programatically change the backgroundColor of an UITextField that sits in a UITableViewCell?
Setting the UITextField.backgroundColor doesn't seem to work.
I had the same problem. I sovled it by creating my own UITextField and adding it to the UITableViewCell, but im not sure if there's a better way to do it.
Try do it in layoutSubviews method of this cell.
- (void)layoutSubviews {
[super layoutSubviews];
self.textLabel.backgroundColor = [UIColor blackColor];
}