SFTagView
SFTagView copied to clipboard
When using in table view with another custom cell the app goes into infinite loop
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;
}