iOS 7 Status Bar Collides With NavigationBar

前端 未结 17 1307
攒了一身酷
攒了一身酷 2020-11-28 03:14

I have a view controller in my app that has a navigation bar dragged on it in the storyboard. It was working fine in the iOS 6 but in iOS 7 it look like this:

17条回答
  •  孤独总比滥情好
    2020-11-28 03:50

    If you use Xcode 6 and Swift, you can make it:

    1. Open to info.plist file of your app.
    2. Add a ViewControllerBasedStatusBarAppearance Boolean key if it is not existing and assign value “NO”.
    3. Add “Status bar style” key if it is not existing and select “Opaque black style” value to it.

提交回复
热议问题