Reputation: 54943
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
Reputation: 54943
Calling setNeedsLayout()
on my tableview in viewDidLoad()
solved the probleM.
Upvotes: 1