Weird uitableview behaviour in iOS11. Cells scroll up with navigation push animation

前端 未结 12 1435
粉色の甜心
粉色の甜心 2021-01-29 18:34

I have recently migrated some code to new iOS 11 beta 5 SDK.

I now get a very confusing behaviour from UITableView. The tableview itself is not that fancy. I have custo

12条回答
  •  盖世英雄少女心
    2021-01-29 19:14

    please make sure along with above code, add additional code as follows. It solved the problem

    override func viewDidLayoutSubviews() { 
         super.viewDidLayoutSubviews() 
         tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) // print(thisUISBTV.adjustedContentInset) 
    }
    

提交回复
热议问题