Handy UITextField additions like insetting text.
Objective-C Ruby
Latest commit 357c368 Sep 13, 2014 @soffes Version 0.1.2
Failed to load latest commit information.
SAMTextField Update insets Sep 5, 2014
LICENSE Happy New Year πŸŽ‰ Jan 1, 2014
Readme.markdown Update Readme.markdown Aug 29, 2014
SAMTextField.podspec Version 0.1.2 Sep 12, 2014



Handy UITextField additions like insetting text and other elements.

SAMTextField is tested on iOS 6-8 and requires ARC. Released under the MIT license.


// Initialize a text field
SAMTextField *textField = [[SAMTextField alloc] initWithFrame:CGRectMake(20.0f, 20.0f, 280.0f, 44.0f)];

// Inset some text
textField.textEdgeInsets = UIEdgeInsetsMake(10.0f, 10.0f, 10.0f, 10.0f);

See the header for full documentation.


Simply add the files in the SAMTextField.h and SAMTextField.m to your project or add SAMTextField to your Podfile if you're using CocoaPods.