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

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

    Also if you use tab bar, bottom content inset of the collection view will be zero. For this, put below code in viewDidAppear:

    if #available(iOS 11, *) {
        tableView.contentInset = self.collectionView.safeAreaInsets
    }
    

提交回复
热议问题