Skip to content

Instantly share code, notes, and snippets.

@laguiar
Created August 2, 2011 14:59
Show Gist options
  • Save laguiar/1120359 to your computer and use it in GitHub Desktop.
Save laguiar/1120359 to your computer and use it in GitHub Desktop.
Align the UILabel content on top
UILabel *label;
CGRect labelRect = [label textRectForBounds:label.bounds limitedToNumberOfLines:10];
CGRect f = label.frame;
f.size.height = labelRect.size.height;
label.frame = f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment