Last active
August 29, 2015 14:00
-
-
Save interchen/e28652dfe8837f54b2b6 to your computer and use it in GitHub Desktop.
heightForRowAtIndexPath
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 | |
{ | |
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