Navbar position reset when rotated to front
I have set my navbar to my first ViewContoller in viewWillAppear
self.navigationController.navigationBar.frame = CGRectMake(0.0, 64.0, self.navigationController.view.bounds.size.width, 44.0);
This allowed me to put the logo above the panel.
But when I go back to the background and go back, the position of the navbar is reset to the top.
I tried addObserver which caught UIApplicationWillEnterForegroundNotification
and set the navbar border again. But it doesn't work.
Please help, Thanks a lot.
+3
source to share