Skip to content

Instantly share code, notes, and snippets.

@AgiosAndreas
Created April 11, 2011 11:24
Show Gist options
  • Select an option

  • Save AgiosAndreas/913377 to your computer and use it in GitHub Desktop.

Select an option

Save AgiosAndreas/913377 to your computer and use it in GitHub Desktop.
Calculate multiline UILabel height
UILabel label = new UILabel(new RectangleF(0,0,250,0));
label.Font = UIFont.FromName("Marker Felt", 18F);
label.Lines = 0;
label.Text = "This general topic has been asked here multiple times: how to render UITableViewCells";
label.SizeToFit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment