views:

42

answers:

2

Hi,

I want to change the color of UITableViewCellAccessoryCheckmark and UITextField background color where we type. I found this is not straight forward. Please help me.

Thank you.

+1  A: 

By default,you cannot change the color of UITableViewCellAccessoryCheckmark

But alternatively you can use the image for this..as just like checkmark

while for textField you can use this single line..

[textField setBackgroundColor:[UIColor redColor]];

Ajay Sharma
Specifically, you'd use the `accessoryView` property of the cell instead of `accessoryType`.
Daniel Dickison
Tanks Daniel for the reply
Dilshan
A: 

Thanks Ajay But when you call the setBackgroundColor it will set the background color but it will not change the color of the ares where the text resides. I want to change the color of lets say foreground of the text field.

Dilshan
You should post this as a comment on Ajay's answer (as you did for your reply to Daniel), not as another answer.
Peter Hosey