Matthieu Riegler
Matthieu Riegler

Reputation: 54943

UITableView section header floating after changing tab

I have a UITableViewController as one of my tabs (UITabBarController). After switch to another tab and then going back to ma UITableViewController, the section header is floating in the middle of the screen.

Also, a small scrolling is enough to replace it at its right position.

Has anyone has this kind of problem and any idea how to fix this ?

Upvotes: 0

Views: 157

Answers (1)

Matthieu Riegler
Matthieu Riegler

Reputation: 54943

Calling setNeedsLayout() on my tableview in viewDidLoad() solved the probleM.

Upvotes: 1

Related Questions