Force UITableView to Scroll to Tops of Cells

后端 未结 6 2055
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 13:41

Is there a way to make UITableViews scroll cell to cell? That is, the top of the Table View is always the top of a UITableViewCell.

I tried the pageation flag, but t

6条回答
  •  旧巷少年郎
    2020-12-29 13:59

    You simply need to call scrollToRowAtIndexPath:atScrollPosition:animated: and pass it the right index path for the cell you want.

提交回复
热议问题