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

前端 未结 12 1531
粉色の甜心
粉色の甜心 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:11

      if #available(iOS 11, *) {
            self.edgesForExtendedLayout = UIRectEdge.bottom
      }
    

    I was using UISearchController with custom resultsControllers that has table view. Pushing new controller on results controller caused tableview to go under search.

    The code listed above totally fixed the problem

提交回复
热议问题