UITableView scrollToRowAtIndexPath scrolls to wrong offset with estimatedRowHeight on iOS 7

后端 未结 9 1881
轮回少年
轮回少年 2021-02-12 12:46

I am using the estimatedRowHeight method from UITableView in iOS 7, which works perfectly for fast loading of a UITableView with 5000 rows of variable heights.

9条回答
  •  遇见更好的自我
    2021-02-12 13:30

    Mine was wrong because the "atScrollPosition" was set to UITableViewScrollPositionNone - change it to UITableViewScrollPositionMiddle and it should work fine

提交回复
热议问题