ios7 - navigation bar overlapping with status bar on rotating device -


this question has answer here:

hi status bar overlapping navigation bar.though able display correctly when load screen when rotate navigation bar , status bar overlaps tried set these properties

if([[[uidevice currentdevice] systemversion]floatvalue ] >= 7.0) {         self.extendedlayoutincludesopaquebars = no;         self.automaticallyadjustsscrollviewinsets = no;          self.navigationcontroller.navigationbar.translucent=no;         self.edgesforextendedlayout = uirectedgeall; } 

if you're not using storyboard, can use code in appdelegate.m in did finishlaunching:  if ([[[uidevice currentdevice] systemversion] floatvalue] >= 7) { [application setstatusbarstyle:uistatusbarstylelightcontent]; self.window.clipstobounds =yes; self.window.frame =  cgrectmake(0,20,self.window.frame.size.width,self.window.frame.size.height-20); } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -