How to set edgesForExtendedLayout to none in Swift 3

前端 未结 4 1936
终归单人心
终归单人心 2020-12-30 18:44

The problem is that my View, containing a UIView and a UITableView within a ScrollView, gets hidden under the UINavigationBar

4条回答
  •  灰色年华
    2020-12-30 19:43

    I don't know how but I just add following code in my viewDidLoad() self.navigationController?.navigationBar.isTranslucent = false And it solves my problem.

提交回复
热议问题