I am using a Navigation Controller having 3 views. The 1st view has the Title Bar Hidden and the remaining views have it displayed. So I am hiding it in the first view in viewWillAppear() as
self.navigationController.navigationBar.hidden = YES;
and in the second view, I’m displaying it
self.navigationController.navigationBar.hidden = NO;
That being said, the title bar is hidden in the first view and shows up and works fine on the second and third views.
When I navigate from the first to the second view and to the third, everything works fine. But, when I go from the third view back to the second, the images are compressed by around the height of the title bar. And again works fine when I go from the first to the second view.
The navigationbar.hidden property should not be set directly. You should use: