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

前端 未结 8 953
既然无缘
既然无缘 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条回答
  •  囚心锁ツ
    2020-12-08 06:58

    The above mentioned in the above answers did'nt work for me.When translucent is NO my ViewController pushes downwards which is embeded in Navigation controller. The solution worked for me is shown below

    1. Go to Attributes Inspector
    2. Select 'Extend Edges' by ticking the checkbox titled Under Opaque Bar

    The screenshot is atatched

    I am using Xcode 9.

    Thanks

提交回复
热议问题