UItableViewCell - don't allow to select the cell, but can still press buttons inside it?

Viewed 7538

Can you add a button as a subview to a uitableview cell and have that clickable, but not the cell itself. ie: I don't want the selected view to come up. Obvs I can just not have the cell disclose anywhere, but I don't want it to look "selected" when someone taps it.

Setting user interaction enabled to NO makes the whole thing unenabled, including the buttons.

Any ideas?

Thank you.

Tom

4 Answers

Just select the option "no selection" on the attributes inspector like in the image

Related