Subclass and override textRectForBounds:and editingRectForBounds:. Your new implementations might look something like this:
- (CGRect)textRectForBounds:(CGRect)bounds;
{
return CGRectInset([super textRectForBounds:bounds], 10.f, 0.f);
}
- (CGRect)editingRectForBounds:(CGRect)bounds;
{
return CGRectInset([super editingRectForBounds:bounds], 10.f, 0.f);
}
source
share