View got hidden below UINavigationBar iOS 7

前端 未结 9 1587
粉色の甜心
粉色の甜心 2020-12-02 13:10

Earlier, I was using iOS 6.1 for my project. Recently I have switched to iOS 7. For, a lot of changes I knew, I updated my code.. But I have observed a strange behavior. My

9条回答
  •  星月不相逢
    2020-12-02 13:17

    If you do not need translucent navigation bar in your app you can fix this on iOS7 and iOS6 without code changes.

    In storyboard select your navigation controller and then open "Attributes Inspector". Then under "Simulated Metrics" set "Top Bar" to some value but not to "translucent":

    Setting Top Bar style

    Now your views on iOS6 and iOS7 will have the same positioning as before.

提交回复
热议问题