UITableView insert rows without scrolling

前端 未结 6 1383
我在风中等你
我在风中等你 2020-12-05 03:13

I have a list of data that I\'m pulling from a web service. I refresh the data and I want to insert the data in the table view above the current data, but I want to keep my

6条回答
  •  伪装坚强ぢ
    2020-12-05 04:08

    Just call setContentOffset before endUpdates, that works for me.

    [tableView setContentOffset:CGPointMake(0, iContentOffset)];
    [tableView endUpdates];
    

提交回复
热议问题