Created
April 7, 2014 17:22
-
-
Save riosc/10024494 to your computer and use it in GitHub Desktop.
padding texfield ios
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
- (CGRect)textRectForBounds:(CGRect)bounds { | |
return CGRectMake(bounds.origin.x + 10, bounds.origin.y + 13, | |
bounds.size.width - 20, bounds.size.height - 16); | |
} | |
- (CGRect)editingRectForBounds:(CGRect)bounds { | |
return [self textRectForBounds:bounds]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment