Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- NSString *flexibleContent = [[_timelineItems objectAtIndex:indexPath.row] objectForKey:@"content"];
- CGFloat staticHeight = 80.0;
- CGFloat textHeight = [self text:flexibleContent sizeWithFont:[UIFont boldSystemFontOfSize:14.0f] constrainedToSize:CGSizeMake(234.0f, 1000.0f)].height + 20.0f;
- NSLog(@"Cell height %f", textHeight);
- return staticHeight + textHeight;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement