Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (25 sloc) 642 Bytes
//
// SSTextField.m
// SSToolkit
//
// Created by Sam Soffes on 3/11/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSTextField.h"
@implementation SSTextField
@synthesize textEdgeInsets = _textEdgeInsets;
#pragma mark UIView
- (id)initWithFrame:(CGRect)frame {
if ((self = [super initWithFrame:frame])) {
_textEdgeInsets = UIEdgeInsetsZero;
}
return self;
}
#pragma mark UITextField
- (CGRect)textRectForBounds:(CGRect)bounds {
return UIEdgeInsetsInsetRect(bounds, _textEdgeInsets);
}
- (CGRect)editingRectForBounds:(CGRect)bounds {
return [self textRectForBounds:bounds];
}
@end
Something went wrong with that request. Please try again.