1- Override
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
If indexPath.row% 2 == 1 (a line with an odd index), delete the text in your cell, set the background color to red and return that cell. If you are filling the table with an array, you must consider these additional red cells and fill them accordingly.
2 - Write a custom UITableView cell with extra red space at the bottom and return this cel to cellForRowAtIndexPath. If necessary, remove the red space in the bottom cell.
source share