The problem is what you do
[cell.imageView setImage:[UIImage imageNamed:@"oie_png-1.png"]]; cell.textLabel.text = title;
before
if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; }
reorder. What happens is that the first time you start the View table, you never make a header before alloc. When you reuse a cell, it works because the cell! = Nil
source share