I set my navigation bar in my first ViewContoller at viewWillAppear
self.navigationController.navigationBar.frame = CGRectMake(0.0, 64.0, self.navigationController.view.bounds.size.width, 44.0);
It let me put a logo above the bar .
But when I turn the app to background and turn back , the navigationbar position reset to the top .
I have tried addObserver that catchUIApplicationWillEnterForegroundNotification
and set the frame of navigationbar again . But it's not working .
Please help , thanks a lot .
I had found the solution.
Subclass UINavigationBar.
implement the
- (CGSize)sizeThatFits:(CGSize)size
method to change navigation bar size.such as
It works perfect.