I have a UITableViewController
inside a navigationController
. I have code that hides the navigationBar
(sets its frame.origin.y
to a negative value, thereby sending it offscreen) when I scroll the tableView
. The navigationBar
is successfully hidden, but when I leave the app by tapping the home button and then launch the app into the foreground, the navigationBar is back with frame.origin
at (20, 0)
(x = 20 since the status bar is visible), and the tableView
pushed down the screen (with frame.origin
back to (64, 0)
in portrait).
Any ideas on how to prevent the navigationBar
from reappearing upon the app entering the foreground would be much appreciated.