Created
October 19, 2011 01:01
-
-
Save ejknapp/1297221 to your computer and use it in GitHub Desktop.
Font sizing method
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
CGSize constraint = CGSizeMake(310, 20000.0f); | |
CGSize size = [wordDefinition sizeWithFont:[UIFont systemFontOfSize:18] | |
constrainedToSize:constraint lineBreakMode:UILineBreakModeWordWrap]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment