Resolved Hiding/Showing Status Bar & Nav Bar issue.


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]


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

Popular posts from this blog

Rogue - the old text based game. I can't find it!

RAID in Early 2009 Mac Pro

NBC Releases Summer Olympics iOS Apps, Offering Livestreaming of All 302 Events