uitableview - iPhone Custom UITableViewCell with image after scroll -


The

View with custom cells in my app UItableView, cells with the image, but the image in the first few cells no image Other images appear after scrolling the table at that place is white. Please help fix this problem.

Although your answer is providing a working solution, I think it is not with this problem imagine dealing the right way

There is an NSArray with 1,000 NSStrings that you want to display using the table. By showing them a unique ID for that NSString in a cell, you're basically building 1,000 cells! This will slow down your app. The whole idea is that the cells are reused so that only 1-2 extra are made from the displayed.

So the right solution: deal with it

  1. Reuse a cell by creating a unique ID for that class
  2. Reset / renew the contents of the cell itself; Assume dirty content

To see the Stanford iPhone class on the ps table, number 8 (around 18:50), the apple A man tells it all.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -