邮箱检查

    NSString * regexPassword = @"^.{6,}$";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regexPassword];
    if (![predicate evaluateWithObject:self.password.text]||![predicate evaluateWithObject:self.againPassWord.text]||![predicate evaluateWithObject:self.recentPassWord.text]) {
        [self alertWithTitle:@"密码格式不正确,最少为6" message:@""];
        return NO;
    }

posted @ 2012-11-27 17:00  人魔七七  阅读(214)  评论(0编辑  收藏  举报