When is cellForRowAtIndexPath method called?
问题 When exactly is this method called ? Suppose at a time I have 4 of my tableview cells visible on the screen then for how many cells will this method be called. Also, what if a cell is partially visible, will the method be called for the next cell as well in this case ? P.S. I am not stuck anywhere, so showing some code doesn't make any sense. Its just a fundamental doubt. 回答1: The most simple explanation I can give you is - cellForRowAtIndexPath , will call when a cell is about to be shown in