Today, when I write a project that returns from one interface to another, there are two classes of problems that are encountered: Firstviewcontroller and Buttonviewcontroller.
From Firstviewcontroller into Buttonviewcontroller, I used them in FIRSTVIEWCONTROLLER.M and BUTTONVIEWCONTROLLER.M respectively:
Self.navigationController.navigationBarHidden = YES; // Hide the navigation bar FIRSTVIEWCONTROLLER.M
Self.navigationController.navigationBarHidden = NO; Restore the page navigation bar in BUTTONVIEWCONTROLLER.M
At this point, think this is good, when the simulator opened, found that the Buttonviewcontroller interface Contentview part of the navigation bar is obscured, so after baidu.com reference http://blog.csdn.net/ CNY901111/ARTICLE/DETAILS/26529949 uses the following code:
Self.edgesforextendedlayout = Uirectedgenone;
But the problem came again, when running on the simulator, found that the navigation bar position when entering Buttonviewcontroller "lag" phenomenon, the solution code is as follows:
// will self.edgesforextendedlayout = uirectedgenone; // instead:self.navigationController.navigationBar.translucent =NO;
Can. When translucent is not set (the default is YES), the navigation bar defaults to translucent color, so you need to set it up as well.
The trouble with using Edgesforextendedlayout