In general Storyboards are an awesome hugely productive tool that I cannot live without. But ... I am pulling my hair out trying to do something I assumed would be trivially simple: set the selection color for a tableView cell. Impossible.
My storyboard is simple: navigationController --root controller--> tableViewController
Here are screenshots.
The app. Notice the pale, sickly grey cell selection color that should be blue.
Storyboard screenshots.
NavigationController. Notice I set the nav bar to opaque.
TableViewController. Again, solid opaque nav bar.
TableViewCell. Notice I set selection color to blue not pale, sickly grey.
Can someone please explain to me how to convince Storyboard how to do this.
Thanks.
In your storyboard, do the following:
Place a UIView as a background view of your prototype cell. This should be below your UILabels. Change its background color to your desired color. (Background NOT Tint)
Select your prototype cell and go to its connections inspector (Command + Alt + 6).
Drag the selectedBackgroundView
outlet into your just placed background view.
Source: How to change background selected color storyboard static cells