Created
October 10, 2011 18:43
-
-
Save anthonyherron/1276141 to your computer and use it in GitHub Desktop.
Subclass UILabel and add below to start drawing text at exactly origin 0.0,0.0 (x,y)
This file contains 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
-(void) drawTextInRect:(CGRect)inFrame | |
{ | |
CGRect draw = [self textRectForBounds:inFrame limitedToNumberOfLines:[self numberOfLines]]; | |
draw.origin = CGPointZero; | |
[super drawTextInRect:draw]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment