Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:12:06+00:00 2026-06-04T18:12:06+00:00

As a user scrolls up and down in an uitableview cells get destroyed and

  • 0

As a user scrolls up and down in an uitableview cells get destroyed and created.

Is there a way to detect when a cell is going to be or has been destroyed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:12:07+00:00Added an answer on June 4, 2026 at 6:12 pm

    Assuming that by “getting destroyed” you actually are referring to a cell getting reused, simply implement prepareForReuse within your UITableViewCell derived class.

    prepareForReuse

    Prepares a reusable cell for reuse by the table view’s delegate.

    - (void)prepareForReuse
    

    Discussion

    If a UITableViewCell object is reusable—that is, it has a reuse
    identifier—this method is invoked just before the object is returned
    from the UITableView method dequeueReusableCellWithIdentifier:. For
    performance reasons, you should only reset attributes of the cell that
    are not related to content, for example, alpha, editing, and selection
    state. The table view’s delegate in tableView:cellForRowAtIndexPath:
    should always reset all content when reusing a cell. If the cell
    object does not have an associated reuse identifier, this method is
    not called. If you override this method, you must be sure to invoke
    the superclass implementation.

    Availability
    Available in iOS 2.0 and later.
    See Also
    – initWithFrame:reuseIdentifier:
    @property reuseIdentifier
    Declared In
    UITableViewCell.h

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why does my app quit when user scrolls down the UITableView, past the first/last
is there a plugin for Drupal to load images as the user scrolls down
I've been searching tirelessly to find a script that as a user scrolls down
So basically I need something similar that twitter has - when user scrolls down
I would like to make it so when user scrolls down and reaches a
I wish to create a sticky header. Everytime that the user scrolls down AND
Basically I've got a huge table, which gets even bigger as user scrolls down
I'm facing UITableViewCell setup issue when user scrolls down and up the table. The
I'd like to have a div appear after a user scrolls down on a
UPDATED : Scroll down for updated. I have a UITableView which cells contain few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.