iOS7 Status Bar over Navigation Bar

前端 未结 4 1615
感情败类
感情败类 2021-02-08 06:13

I\'m testing my application with iOS7 and I have an issue with status bar. Basically the status bar appear over navigation bar like the image below:

4条回答
  •  野性不改
    2021-02-08 06:45

    edgesForExtendedLayout and automaticallyAdjustsScrollViewInsets are just standards for how parent view controllers lay out / manage the view. It looks like you're using a UINavigationBar, but not a UINavigationController, which means these properties won't do anything unless you code them to.

    You can switch to use a UINavigationController, or you can programmatically change the height of your UINavigationBar from 44 to 64 on iOS 7.

提交回复
热议问题