Skip to content
Il ho Ahn edited this page Aug 27, 2013 · 1 revision

##Summary

Checking value is valid from.

  • Validation values
  • Restrict UI

Validation values

####+(BOOL) email:(NSString *)checkString

Eamil format check. ex) abc@ab.com

##Restrict UI

####+(BOOL) limitLength:(NSInteger) limit onTextField:(UITextField *)textField inRange:(NSRange)range replaceString:(NSString *)string

Limit text field length trough UITextField Delegate.

- (BOOL) textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string)
{
    return [FromValidation limitLength:5 onTextField:textfiled inRange:range replaceString:string];
}
Clone this wiki locally