I have a tableview with a tableview header (not a section header) that changes depending on the orientation. In my implementation, I set frames for both views in viewWillLayoutSubviews.
My problem right now is that when both change correctly individually after the rotation, the start of the tableView does not change to take into account the change in the height of the header. This results in a space between them or a heading spanning some cells.
My goal is to have in the portrait, the tabular view should have a screen width with a long title. When turning in the horizontal direction, the width decreases to a third of the width of the screen, aligned to the right with a shorter title. In addition, I need the rotation animation for all of these changes to be smooth and logical.
I'm pretty green for iOS rotation and animation, so if anyone has the best deals, I would definitely rate them.
source
share