Top margin on UITableViewController

前端 未结 3 2136
春和景丽
春和景丽 2021-01-31 15:12

I have a TabBarController, one of the tabs of which contains a sub view which is a navigationController. I am then loading into the navigation controller a view which inherits f

3条回答
  •  名媛妹妹
    2021-01-31 15:53

    This "tucked in behind the Navigation bar" issue is due to iOS 7 using fullscreen layout automatically. See the iOS 7 Transition Guide.

    It's a bit devious since it displays as in iOS 6 in the Simulator (layout-wise; ie. not tucked in behind).

    Is your navigation bar translucent? Mine was, and setting it to non-translucent fixes it on Iphone iOS 6, iPhone iOS 7, and Simulator 7.0 building with XCode 5. (In my case I set it to translucent for visual appearance.)

提交回复
热议问题