Add a UINavigationController nested inside a container view controller to a UITabBarController

后端 未结 2 1933
失恋的感觉
失恋的感觉 2021-02-09 20:00

I have a UIViewController (red) set as the first tab of a UITabBarController as shown in the storyboard below. This view controller is a container view

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-09 20:42

    I know you are also looking for an answer which works on iOS 6, but on iOS 7 and above you can use

    self.extendedLayoutIncludesOpaqueBars = YES;
    

提交回复
热议问题