Organic icon indicating copy to clipboard operation
Organic copied to clipboard

Move logic from tableView to Section

Open MontakOleg opened this issue 10 years ago • 0 comments

This allows to create custom smart OrganicSections, for example DynamicHeightReuseOrganicSection:

- (CGFloat)cellHeightForRow:(NSInteger)row inTableView:(UITableView *)tableView
{
    if (self.reuseEnabled) {
        OrganicCell *cell = [self cellForRow:row inTableView:tableView];
        [cell layoutIfNeeded];
        return cell.height;
    }
    else {
        [super cellHeightForRow:row inTableView:tableView];
    }
}

MontakOleg avatar Oct 03 '15 03:10 MontakOleg