Created
March 14, 2014 19:45
-
-
Save akozlik/9555349 to your computer and use it in GitHub Desktop.
Dynamic Cell Height w/AutoLayout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
static UITableViewCell *cell; | |
if (cell == nil) { | |
cell = [tableView dequeueReusableCellWithIdentifier:@"ClueCell"]; | |
} | |
[self configureCell:cell forIndexPath:indexPath]; | |
return [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height + 1.0f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment