1 -(BOOL)isValidateEmail:(NSString *)email2 {3 NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+//.[A-Za-z]{2,4}";4 NSPRedicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];5 return [emailTest evaluateWithObject:email];6 }
新闻热点
疑难解答