I want to change the color of UITableViewCellAccessoryCheckmark and UITextField background color where we type. I found this is not straight forward.
I solved this issue by changing the tint color of the UITableView
where the cell belongs.
Update the Tint Color of UITableView
in interface builder to Default
or programmatically as below.
For Objective C
yourTableView.tintColor = [UIColor blackColor];
For Swift
yourTableView.tintColor = .black
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]];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.