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

  • SEARCH
  • Home
  • 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 7879699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:57:37+00:00 2026-06-03T03:57:37+00:00

we all know that the cell in uitableview can be resued, but i am

  • 0

we all know that the cell in uitableview can be resued, but i am seeing some weird results.
i am create a custom cell, each cell has 4 columns, each column has an image
so format is like this
|img|img|img|img|
after the cell is returned, i am configuring each cell, an example would be configuring first column to picture 1, then second column to different picture

now just assuming that i can only display two rows at a time in the tableview:

|a0|a1|a2 |a3 |
|b4|b5|b6 |b7 |
------cell c not visible to user------
|c8|c9|c10|c11|

as user scrolls down, column ‘a’ (a0-a3) above, will become invisible, and as far i know that cell becomes invisible will be reused for column c

the example above works fine, if i can fully occupy every cell/row, i.e. i have total 12 pictures.

but if i have say 10 pictures (last row will be filled with only 2, and the other two are empty, like as the following:

|a0|a1|a2 |a3 |
|b4|b5|b6 |b7 |
------row/cell 'c' not visible to user------
|c8|c9|empty|empty|

however, problem arises, when i scroll up to see cell/row ‘c’
i have the following picture:

|a0|a1|a2 |a3 |
------row/cell 'a' not visible to user------
|b4|b5|b6 |b7 |
|c8|c9|a2|a3|

notice that the row/cell c’s last two columns should be empty, but is showing a2 and a3 instead

how can i fix this? i am thinking about a manual way of doing this, i.e. by checking if i should remove unnecessary views etc when reusing, but could be more complicated
is there a more systematic way of doing this that is easier and cleaner?

is there a way we could ask the returned cell to forget its content, or do i have to do this myself?

thanks

  • 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-03T03:57:39+00:00Added an answer on June 3, 2026 at 3:57 am

    I had a similiar issue recently. Override prepareForReuse after subclass the tableview cell fixed it. Got the answer from here

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

Sidebar

Related Questions

We all know the effects that lots of thrown exceptions can have over the
I know that technically all three ways below are valid, but is there any
i have all that data with me in tableview but when i dont know
I know that if I have some images and subviews added in customized cell
Normally one can create a UITableView with cells that allow the user to reveal
In GridPanel, we all know that we can specify renderer in a column configuration
We all know that CSS sprite images are great to reduce the amount of
We all know that a hash table has O(1) time for both inserts and
We all know that most applications out there assume class names to follow the
as you all know that if we use flash object in web page in

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.