Reputation: 1489
How do I customize the appearance of a UITableViewCell when the tableView is given the edit call.
I need to hide some objects, and reveal a couple buttons on edit. And move things around a little bit. What is the delegate method I should pay attention to?
I want to change the appearance of all cells like when apple does it when there's an accessory delete button on the left? I need to do it before I select any rows.
Upvotes: 0
Views: 252
Reputation: 1489
I ended up customizing the appearance of my UITableViewCell subclass in the method. This method is called inside the cell (in TableViewCellCustom.m)
- (void)willTransitionToState:(UITableViewCellStateMask)state;
Upvotes: 1
Reputation: 6106
Basically you would want to listen to tableView:didSelectRowAtIndex: and tell your view that it's selected.
that being said, you will have to subclass UIView and do your customizing in there and then add it to a UITableViewCells contentView.
That is what I would do.
Upvotes: 0