In all of my UITableView
programming, I've always configured my UITableViewCells
in -[UITableViewDataSource tableView:cellForRowAtIndexPath:]
. Now I've come across the -[UITableViewDelegate willDisplayCell:forRowAtIndexPath:]
method. That also seems like an appropriate place to do cell configuration.
My question is: what's the appropriate "division of labor" between these two methods? What should I do in one vs. the other?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…