Created
April 11, 2011 11:24
-
-
Save AgiosAndreas/913377 to your computer and use it in GitHub Desktop.
Calculate multiline UILabel height
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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