iTahDoodle not behaving as expected?


What does this do?:

UITableViewCell *c = [taskTable dequeueReusableCellWithIdentifier:@“Cell”]

The book says that “we reconfigure cells in memory that have scrolled off the screen.”

Does it mean they disappear once is off the screen?

Just wanted to make sure that everything is functioning the way its spose to be! :slight_smile:


Yes, cells have identifiers (in this case “Cell”). When a cell goes off screen it is put into a pool with all the others with that identifier. This line:

UITableViewCell *c = [taskTable dequeueReusableCellWithIdentifier:@"Cell"]

Is saying “Pull one of those cells out of the ‘Cell’ pool. Return nil if none are available.”