I've implemented a custom table view cell class that inherit from UITableViewCell
. The tableview contains a background image, so I want cell's background to be transparent. It looks great before iOS7.
However, in iOS7, the cell is always shown with a white background.
Even for Xcode7, 2015, there is a bug in storyboard: you have to set the background color of a cell in code.
Best Answer
As Apple DOC said (UITableViewCell Class Reference):
So for my case that to show cells with transparent background, just need to implement the delegate method in the table view controller like below:
Just Note: As @null said, "...there seems to be a bug in interface builder...", I'm not totally sure whether it does have the bug, but seems so cause his comment got several up votes. So there might something wrong if you use IB. :)