Category: Email validation

Email validation on textField in iPhone 0

Email validation on textField in iPhone

Use NSPredicate and Regex: – (BOOL)validateEmailWithString:(NSString*)email{    NSString *emailRegex = @”[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}”;     NSPredicate *emailTest = [NSPredicate predicateWithFormat:@”SELF MATCHES %@”, emailRegex];     return [emailTest evaluateWithObject:email];}   For a bunch of emails separated by...