Advertisement
Guest User

Untitled

a guest
Sep 12th, 2013
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  2. {
  3.     NSString *flexibleContent = [[_timelineItems objectAtIndex:indexPath.row] objectForKey:@"content"];
  4.    
  5.    
  6.     CGFloat staticHeight = 80.0;
  7.     CGFloat textHeight = [self text:flexibleContent sizeWithFont:[UIFont boldSystemFontOfSize:14.0f] constrainedToSize:CGSizeMake(234.0f, 1000.0f)].height + 20.0f;
  8.     NSLog(@"Cell height %f", textHeight);
  9.    
  10.     return staticHeight + textHeight;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement