Open mhlangagc opened 8 years ago
Well, you should not force unwrap.
Use a let guard
or if let
and the exception should go away. Maybe this callback es called to early, before your tableHeaderView is initialised. Try that out first.
-tableView.tableHeaderView!.frame.size.height/2.0
is fit to top tableView
?
I have a tableHeaderView in my UITableViewController that displays some data pulled from Parse. On trying to used this function I get a nil value returned and a crash. Removing it allows the app to run without crashing but does not show the background view setup when the cells are empty. Anything I could be missing?