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

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

    You can edit this behavior at once throughout the application by using NSProxy in for example didFinishLaunchingWithOptions:

    if (@available(iOS 11.0, *)) {
          [UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } 
    

提交回复
热议问题