Changing custom cell appearance when entering editing mode
I have a table with custom cells, that I built in IB. When entering editing mode, content of all cells is开发者_StackOverflow中文版 moved to show delete edit control. My question is where can I adjust the cell appearance before entering editing mode? I saw that willBeginEditingRowAtIndexPath function is supposed to let adjust the UI, but seems I don't get there at all.
Please help,
TIA
UITableViewCell
has following functions for adjusting its contents when cell's state is changing:
- (void)willTransitionToState:(UITableViewCellStateMask)state
- (void)didTransitionToState:(UITableViewCellStateMask)state
So you can subclass UITableViewCell
and override those function in it to adjust cell's appearance.
精彩评论