How to make only certain rows selectable on a table view?

How do I configure a table view so that some rows are selectable and some rows not selectable?

Check out the willSelectRowAt method in the UITableViewDelegate. Return nil for those rows that you do not want to be selectable; return the indexPath for the rows that you do want to be selectable.

Have fun!

This topic was automatically closed after 166 days. New replies are no longer allowed.