views:

80

answers:

1

Hi

I want to intercept taps on the circular Deletion control (example of Deletion Control button) on my TableView to know when the "Delete" button comes in and I can change my cell layout. Can Anyone help me? thanks a lot!

+1  A: 

You can handle "Delete" button appearance if you subclass UITableViewCell and override -willTransitionToState and/or -didTransitionToState methods there. Like:

- (void)willTransitionToState:(UITableViewCellStateMask)state{
    if (state & UITableViewCellStateShowingDeleteConfirmationMask)
       // Delete button will appear
}
Vladimir
Thanks so much for help but I use a simple ViewController to manage my tableviewcell and not a UITableViewCell. I suppose that this method don't work with a viewcontroller instead of UITableViewCell?
Luca