why do programmers use configureCell:atIndexPath: method to config the tableView Cell

前端 未结 4 1841
攒了一身酷
攒了一身酷 2021-01-30 22:22

Well till a couple of days back I use to code everything for UITableViewCell in

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAt         


        
4条回答
  •  孤街浪徒
    2021-01-30 22:46

    Probably because we think customizing the properties and content of a cell belongs in a separate procedure from looking for a reusable cell to dequeue, and/or making a new one if there's nothing to dequeue.

提交回复
热议问题