Reputation: 5056
How can I change the selection / highlight color of a static UITableView
? I understand for non-static UITableViews
I might just subclass a UITableViewCell
, but since I can't use cellForRowAtIndexPath
with a static UITableView
what should I do?
Upvotes: 2
Views: 1397
Reputation: 80265
When using static cells from storyboard, you can customize each cell dynamically in tableView:willDisplayCell:forRowAtIndexPath:
.
Upvotes: 10
Reputation: 1131
You can customise each cell in Interface Builder. You can set each cell's attributes by selecting it and then editing the appropriate fields in the attributes editors. For even more customised appearance/behaviour, you can even subclass a cell and let Interface Builder of its class in the identity inspector.
Upvotes: 0