all fine when hide both navigationbar , statusbar, when want show both again, end 20px white space under navigationbar, , navigationbar 20px high under returned statusbar. see screenshot below after code:
code i'm using:
code:
- (void)togglenavbar:(uitapgesturerecognizer *)gesture { bool barshidden = self.navigationcontroller.navigationbar.hidden; [self.navigationcontroller setnavigationbarhidden:!barshidden animated:yes]; if (!barshidden) { [[uiapplication sharedapplication] setstatusbarhidden:yes withanimation:uistatusbaranimationslide]; } else if (barshidden) { [[uiapplication sharedapplication] setstatusbarhidden:no withanimation:uistatusbaranimationslide]; } } ![[img]](proxy.php?image=http%3a%2f%2fi.imgur.com%2f2yphr.png&hash=eae1c0aa607c0424fe76194ffb67f648)
appreciate help.
thank in advance!
have tried adjusting frame of navigation bar (not saying it's "correct" solution, it's 1 i'd go with...)
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment