Last active
December 30, 2015 18:49
-
-
Save akisute/7869766 to your computer and use it in GitHub Desktop.
Concept code for UITextField delegate settings
This file contains hidden or 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)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
self.textField.delegate = [AKTextFieldDelegateObject delegateObjectWithTraits:@[ | |
[AKTextFieldDelegateTrait minLength:4], | |
[AKTextFieldDelegateTrait minLength:16], | |
[AKTextFieldDelegateTrait format:@"^[a-zA-Z0-9_]+$"] | |
]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment