Make iPhone status bar disappear when displaying a modal view? -
I want to display a modal view, and want to cover it's iPhone status bar.
I tried to fulfill the wishes of the Model View Controller; I have also installed the property of his parents as yes. It does not work, probably because a modal view is displayed under the contents of the main window, which includes the status bar.
My second method completely leaves the whole "wanted full screenline" technique in favor of hiding the "status bar", the Modal View is displayed, then after dismissing the Model View, turn it back on. are given. It works by the very end ... The parent view's parent view is incorrectly placed (its navigation bar has been partially hidden behind the status bar) Calling - [view setneedsleayout] does nothing.
How do I
thank you
- (zero) set status barhard: (BOOL) hidden animated: animated on class UIApplication
.
Something like this:
[[UIApplication ShareApp] setStatusBarHidden: Yes Animated: Yes];
This will hide the status bar with a nice fade animation.
Comments
Post a Comment