This started to happen out of the blue. Any ideas: Code:
CUSTOMCLASSNAME (I have replaced the actual class name as it contains the name of the client.)
Initialis
I had issues with returning a UITableViewCell
in tableView:viewForHeaderInSection
, but returning [cell contentView]
was causing any buttons within the cell to crash, and setting a view wrapper around the cell seemed wasteful. Instead, I changed my UITableViewCell
class to a UITableViewHeaderFooterView
and it worked like a charm!
If you get this issue:
Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.
Just remember to change the background color on your nib to default.