I have UITableView on top of UIView. There is a custom View that is added to UItableView at runtime.
All above views are created using xib.
I want the tableheaderView to be resized when device orientation changes. I tired changing the HeaderView Rect in the callbacks that we get while orientation. But changing the rect only changes the headerView but doesnt push the UITableView cells above and there is gap that can be seen.
Note:- using the size classes in xib doesn't help as the view is attached at runtime to UITableView.
Please let me know what is the better approach that can be used to achieve this.