How to set edgesForExtendedLayout to none in Swift 3

前端 未结 4 1908
终归单人心
终归单人心 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:36

    SWIFT 5 solution

    override func viewWillAppear(_ animated: Bool) {
       super.viewWillAppear(animated)
    
       self.edgesForExtendedLayout = []
    }
    

提交回复
热议问题