UITableView Setting some cells as “unselectable”

后端 未结 16 1500

How can I set the UITableView\'s cell property to be unselectable? I don\'t want to see that blue selection box when the user taps on the cell.

16条回答
  •  余生分开走
    2020-12-12 18:18

    For iOS 6+ only.

    You can implement the method tableView:shouldHighlightRowAtIndexPath: in your delegate. Read more here : http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewDelegate_Protocol/Reference/Reference.html

提交回复
热议问题