Update UIViewTableCell's background when accessory URL is clicked
Posted
by psychotik
on Stack Overflow
See other posts from Stack Overflow
or by psychotik
Published on 2010-04-11T17:53:08Z
Indexed on
2010/04/11
18:03 UTC
Read the original article
Hit count: 305
In the tableView:accessoryButtonTappedForRowWithIndexPath:
selector, I want to update the backgroundColor
of the cell.
I can get the UIViewTableCell
using cellForRowAtIndexPath:
but I'm not sure how I can update its background color. The code beliw doesn't seem to work.
[_tableView beginUpdates];
cell.backgroundColor = [UIColor grayColor];
[_tableView endUpdates];
Any suggestions?
© Stack Overflow or respective owner