SFTagView icon indicating copy to clipboard operation
SFTagView copied to clipboard

When using in table view with another custom cell the app goes into infinite loop

Open rahulvyas opened this issue 9 years ago • 0 comments

Here is the code I have implemented taken from the sample code

UINib *nib = [UINib nibWithNibName:@"AboutMeCustomTVCell" bundle:nil]; [[self tblvPersonalMandatory] registerNib:nib forCellReuseIdentifier:@"AboutMeCustomCell"];

UINib *gridNib = [UINib nibWithNibName:@"GridButtonsTableViewCell" bundle:nil];
[[self tblvPersonalMandatory] registerNib:gridNib forCellReuseIdentifier:@"GridButtonCustomTVCell"];
  • (CGFloat)tableView: (UITableView )tableView heightForRowAtIndexPath: (NSIndexPath *)indexPath { if (indexPath.section == 1 && indexPath.row == 0) { GridButtonsTableViewCell *cell = (GridButtonsTableViewCell)[tableView cellForRowAtIndexPath:indexPath];

    [self configureCell: cell atIndexPath: indexPath];
    return [cell.contentView systemLayoutSizeFittingSize: UILayoutFittingCompressedSize].height + 1;
    

    } return 44;

}

rahulvyas avatar Jan 14 '16 05:01 rahulvyas