Hi Guys I have a problem! I want to change the custom cell if mediaurl==@"string" and move the label on the left if i not load the picture... How can I do? Any issue? if I create a label from code the the method call if mediaurl==@"string" I will make a mistake.
A:
I think this might be related to your other question http://stackoverflow.com/questions/3877658/iphone-problem-with-custom-cell
What you want to do is use two different cell types, correct? If so, you should define two different cell identifiers (eg: @"NormalCell" & @"CustomCell") and dequeue only the kind of cell you need for displaying the current item.
Instead of modifying the cell to suit the data, choose what kind of cell to use depending on what you need to display.
To do this, you need to move your check for string equality (or whatever you use to determine cell type) to before you dequeue a reusable cell.
coastwise
2010-10-07 07:43:30