This is the loop for:
I would like that add 3 images (called 1.jpg, 2.jpg, 3.jpg
) to 3 rows that the table has. But with >=
the view doesn´t appeared and with ==
only the first row has an image.
for (int i = 0; i >= indexPath.row; i++) {
i++;
NSString *number = [NSString stringWithFormat:@"%d", i];
NSString *format = @".jpg";
NSString *end= [NSString stringWithFormat:@"%@%@", number, format];
cell.imageView.image = [UIImage imageNamed:end];
}
What I have to do?