how to disable UserInteraction for UITableview cell but not in custom button on cell

Don't disable user interaction with the whole cell. Set cell.selectionStyle = UITableViewCellSelectionStyleNone to prevent the cell selection. That way the user can still interact with the button.


If you set the cell.userinteraction = NO then you can't touch the button because any interaction is closed for the cell and it's subviews.


An old question, but think this might help someone. You can disable the user interaction of UITableView by setting the property of selection to no selection.

Identity Inspector