When creating a cell (on cellForRowAtIndexPath), you should note:
UserInteractionEnabled property Determine whether the cell can be selected (when clicked, -didSelectRowAtIndexPath will call).
if (!isClickable) { cell.userInteractionEnabled = NO; }
selectionStyle property: Determine if the selected background view is selected by clicking.
cell.selectionStyle = isClickable ? UITableViewCellSelectionStyleBlue : UITableViewCellSelectionStyleNone;
evya source share