- (BOOL)checkEmail { NSString *regularString = @"^[\u0391-\uFFE5\w]+[-+.\u0391-\uFFE5\w]*@\w+([-.]\w+)*\.\w+([-.]\w+)*$";
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regularString];
BOOL isMatch = [predicate evaluateWithObject:emailTextF.text];
return isMatch;
}
|
近期评论