Selection Style

Tables enable you to set the selectionStyle for the selected cell. In iOS 7, despite the name, UITableViewCellSelectionStyleBlue and UITableViewCellSelectionStyleGray both result in a light gray background for the selected cell. If you’d rather not show a selection, use UITableViewCellSelectionStyleNone. The cell can still be selected, but the gray background will not display.

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.