天天看點

郵箱檢查

    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;

    }

繼續閱讀