Floaty
Floaty copied to clipboard
Frame off until using `setNeedsLayout`
I am putting my Floaty in a UITableView.tableHeaderView: self.tableView.tableHeaderView = self.tableViewHeaderWithFloaty
For some strange reason, the frame is misaligned until I open() the Floaty.
Alternatively, I can force the frame to be placed properly if I call setNeedsLayout()
in viewDidAppear()
(does not work if done in the view*LayoutSubviews()
delegates)
Any ideas? So strange!
When the view loads:
When I Open the Floaty... suddenly ok!
When I Close the Floaty... now everything is ok.