I need to display different info depending on conditions.
I sometimes need Root element with sections and in other cases I need table view populated with data.
When I initialize Root element even empty one and then create a tableview when device is being rotated I have Root element on top and data from tableview.
How to preserve table view to stay on top?
I need to display different info depending on conditions. I sometimes need Root element
Share
I’ve just solved the problem overriding DidRotate method in view controller: