As you know for fill the cells contents you have to use the delegate method:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
so, you have to put your IF inside this method and use indexPath.row to understand witch row you are drawing.
Here a simple example:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease];
}
UIImage *a,*b; //Remeber to init with your images:)
if(indexPath.row == 1)
{
[cell.imageView setImage:a];
}
else
{
[cell.imageView setImage:b];
}
return cell;
}
I hope it's what you was looking for :)