Guest User

Untitled

a guest
Sep 12th, 2013
213
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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×