Container View getting pushed down as if it had a UINavigationBar?

前端 未结 8 984
既然无缘
既然无缘 2020-12-08 06:13

I have a UIViewController with a Container View. This Container View contains a UITableViewController.

The UIViewController is embedded in a UINavigationController.

8条回答
  •  -上瘾入骨i
    2020-12-08 07:11

    I fixed this issue by adding this line of code in -viewDidLoad:

    self.extendedLayoutIncludesOpaqueBars = YES;
    

提交回复
热议问题