私は3つのカスタムを持っていますTableViewCells
。heightForRowAtIndexPath
ストーリーボードで AutoLayout を使用できないため、コードで設定する必要がある 3 つのセルの 1 つがあります。
特定のカスタムを設定heightForRowAtIndexPath
する方法はありますか?TableViewCell
私のheightForRowAtIndexPath
:
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
id model = self.combinedModel[indexPath.row];
// Custom Table View Cell Two
if ([model isKindOfClass:[Data self]]) {
return 500;
}
// Custom Table View Cell One and Three
else {
// Not sure what to put here, but need to put something without setting a height
}
}