Created
January 31, 2014 19:37
-
-
Save seivan/8741391 to your computer and use it in GitHub Desktop.
This file contains 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;{ | |
CGFloat heightForRowAtIndexPath = 44.f; | |
NSString * cellID = [self cellIdForIndexPath:indexPath]; | |
UITableViewCell <XXApplicationTableViewCellConfiguring> * cell = [tableView dequeueReusableCellWithIdentifier:cellID]; | |
if([cell conformsToProtocol:@protocol(XXApplicationTableViewCellConfiguring)]) { | |
[cell configureCellWithApplicationModel:self.application]; | |
[cell layoutSubviews]; | |
heightForRowAtIndexPath = [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height; | |
} | |
return heightForRowAtIndexPath; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment