CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jul 2016 |
Maintained by ifobos.
[textField setErrorMessageInValidationBlock:^NSString *(NSString *stringToValidate)
{
NSString *errorMessage = nil;
if ([stringToValidate stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]].length == 0)
{
errorMessage = @"is required.";
}
return errorMessage;
}];
// To implement the - (BOOL)textFieldShouldReturn:(UITextField *)textField
// method specified in the UITextFieldDelegate protocol is only necessary
// to specify a block of code to be executed instead of the method thus only
// it needs to spend the blocks describing a specific behavior as an argument
// to a specific instance of the field.
[textField setShouldReturn:^BOOL(UITextField *textField)
{
[textField endEditing:YES];
return NO;
}];
JRTForm is available through CocoaPods, to install it simply add the following line to your Podfile:
pod 'JRTForm'
Just drag and drop JRTForm directory from demo project to your project. That's it.