1 -(BOOL)isValidateEmail:(NSString *)email { 2 NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"; 3 NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex]; 4 return [emailTest evaluateWithObject:email]; 5 }