Custom Reuse Queue

  • How can I get a notification when an UITableViewCell is about to be queued
    for reuse (e.g. leaves the screen)? I need to perform some work before the
    cell is placed back in the reuse queue.

    Thanks!
  • On 11.07.2012, at 18:01, Joseph Dixon wrote:

    > How can I get a notification when an UITableViewCell is about to be queued
    > for reuse (e.g. leaves the screen)? I need to perform some work before the
    > cell is placed back in the reuse queue.

    I don't think there is a notification. But you may possibly override UITableViewCell's method -prepareForReuse which is invoked just before the cell is returned from the table view method dequeueReusableCellWithIdentifier.
  • That seems to be just what I was looking for. Thanks!

    On Wed, Jul 11, 2012 at 11:15 AM, Andreas Grosam <agrosam...>wrote:

    >
    > On 11.07.2012, at 18:01, Joseph Dixon wrote:
    >
    >> How can I get a notification when an UITableViewCell is about to be
    > queued
    >> for reuse (e.g. leaves the screen)? I need to perform some work before
    > the
    >> cell is placed back in the reuse queue.
    >
    > I don't think there is a notification. But you may possibly override
    > UITableViewCell's method -prepareForReuse which is invoked just before the
    > cell is returned from the table view method
    > dequeueReusableCellWithIdentifier.
    >
previous month july 2012 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today