Of course there are a number of questions that are not mentioned in this article, and you may encounter the following issues as you set up the article's methods:
1.navigationbar background Image customization, although StatusBar and Navigationbar share the background map, but it is still transparent, color will be much lighter than navigationbar, resulting in the final effect is very ugly, then how to fix this problem? It is simple to call the following methods:
NO;
At this time Navigationbar and StatusBar into one, the realization of similar evennote effect.
I have tried to set by:
YES;
To fix this problem, I thought of it because by setting the background color of the controller's view I found that the statusbar below did not seem to be filled with the background color, but the fact that this method was not feasible.
2. Customizing the background of the Navigationbar after the pop a controller plays the animation, the StatusBar and Navigationbar locations will show the navigationcontroller background color, because the default is black, If your controller's background color is not black, it will be very ugly. The key to solving this problem is to:
YES
Because the default is No. I recommend that you always set it to no after you have customized the Navigationbar, so that you can solve the above mentioned problems, but also facilitate your layout in Xib or storyboard, if you use the default values you will find that After you customize the style of the Navigationbar, the Xib or storyboard tries to move down 64, and the egg hurts.
3. Issues relating to the non-implementation of Preferredstatusbarstyle.
This method does not carry out, the harm I spent a day to solve, each without fruit after the stackoverfollow of the Great God online Help, one night tangled after the great God replied to this question, That is because UIApplication is not set to Rootviewcontroller. My work now belongs to two development, the project does not use the system Apple provides navigation controller, custom navigation control is not inherited from the system, resulting in no setup rootviewcontroller, although the console has a warning message, but the project can work, So has not been aware of this problem, eventually led to the Preferredstatusbarstyle can not be executed. Although the specific reason only to see UIApplication source code will be clear, but we do not see. Therefore, it is important to follow the development rules, for each yellow warning and console output warning message must pay attention to repair. Maybe in the future will be the recruit.
IOS7 some problems in customizing StatusBar and Navigationbar