Skip to content

Instantly share code, notes, and snippets.

@interchen
Last active August 29, 2015 14:00
Show Gist options
  • Save interchen/e28652dfe8837f54b2b6 to your computer and use it in GitHub Desktop.
Save interchen/e28652dfe8837f54b2b6 to your computer and use it in GitHub Desktop.
heightForRowAtIndexPath
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *cellId = [self.cells objectAtIndex:indexPath.row];
if ([cellId isEqualToString:kCellId_DevicesCell]) {
return 94.0f;
} else {
UITableViewCell *cell = [self configCellForTableView:tableView cellForRowAtIndexPath:indexPath];
return [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment