Currently, my line heights are configured like this:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == self.expandedSection || indexPath.row <= 3) { return 65; } return 0; }
Essentially, I want the first 4 lines to be visible by default if the section is not in extended form, in which case all lines will be visible. I do this by setting the height of the lines of the first 4-65, and the rest - 0. The lines and their corresponding images are not displayed, however cell.textLabel and cell.detailTextLabel , which leads to their search as in the picture below.
How to disable both of them so that they do not appear at all for any lines in line 4?

source share