

今天,碰到一个情况,以前controller布局用autolayout,需要把导航栏隐藏,没有edgesForExtendedLayout,顶部会一直多一个status bar的高度,后来把auto layout关闭了。但是tabbar,其中一个一直为黑色,所以把self.edgesForExtendedLayout = UIRectEdgeNone;删除就行了。
今天,碰到一个情况,以前controller布局用autolayout,需要把导航栏隐藏,没有edgesForExtendedLayout,顶部会一直多一个status bar的高度,后来把auto layout关闭了。但是tabbar,其中一个一直为黑色,所以把self.edgesForExtendedLayout = UIRectEdgeNone;删除就行了。