1 Answer
1

If your button is in the cell, you could set its tag property to the indexPath.row value and assign it the deleteRow:(id)sender method for target via -(void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents In order to have the button slide, you may need to implement the panGestureRecognizer. I may be wrong about this but the idea should be pretty much to detect the touch locations & slide the button (setting its frame as you slide). And you may need to disable swipe to delete on the table if your intention is to delete by sliding the button.