This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.18 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. UILabel *label;
  2. CGRect labelRect = [label textRectForBounds:label.bounds limitedToNumberOfLines:10];
  3. CGRect f = label.frame;
  4. f.size.height = labelRect.size.height;
  5. label.frame = f;
clone this paste RAW Paste Data