Load all cells in UITableView before scrolling

前端 未结 4 2015
面向向阳花
面向向阳花 2020-12-19 04:40

I have a UITableView with 8 cells(sections) in total in which 6 of them contain textFields as subviews and out of 2 one containing button and the other containing text view.

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 05:32

    Although this seems to be already solved, what could have done as a "dirty hack" is to make the entire table scroll till bottom before performing any operation. Something like [myTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES]; This way it would be forced to load all the UITableCellView. Remember, this is not preferred way, but can work in case minimum code change is required.

提交回复
热议问题