• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UITableViewCell instances
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableViewCell instances


  • Subject: Re: UITableViewCell instances
  • From: Dave DeLong <email@hidden>
  • Date: Fri, 15 May 2009 08:56:46 -0600

A different cell instance is used for each visible row. The point of the queue is so that you don't have to instantiate a new cell for every row in your table. The UITableView will "recycle" old cells (ie, cells that are no longer visibly on the screen) when it is about to display a new cell. This helps keep the overall memory footprint down.

Dave

On May 15, 2009, at 8:52 AM, Mike Manzano wrote:

In the template UITableViewController that instantiates cells by first attempting to dequeue them, is that same dequeued cell used to draw all visible rows, or is there a separate cell used for each row? The docs I've read mention queueing different cells of different types, so it's obvious in that case that the cells are different.

If it's the case that only one cell is used, then how do you handle the state related to, e.g., animating or touch tracking?


Mike Manzano Sent while mobile
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: UITableViewCell instances
      • From: Mike Manzano <email@hidden>
    • Re: UITableViewCell instances
      • From: Luke the Hiesterman <email@hidden>
References: 
 >UITableViewCell instances (From: Mike Manzano <email@hidden>)

  • Prev by Date: UITableViewCell instances
  • Next by Date: Disabling menu items
  • Previous by thread: UITableViewCell instances
  • Next by thread: Re: UITableViewCell instances
  • Index(es):
    • Date
    • Thread