0

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?

drunkcamel
  • 915
  • 3
  • 12
  • 25
  • It's not fully clear to me, could you add a screenshot of what you're getting ? e.g. before and after – poupou Dec 13 '12 at 02:58
  • The Root element content like sections and other elements in it were showed but the table with data disappeared. – drunkcamel Dec 13 '12 at 11:56

1 Answers1

0

I've just solved the problem overriding DidRotate method in view controller:

public overridevoid DidRotate (UIInterfaceOrientation fromInterfaceOrientation)
{
    // Stop event execution in order not to redraw some UI elements incorrectly
}
drunkcamel
  • 915
  • 3
  • 12
  • 25