Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when setting validation block #15

Open
ayberkt opened this issue Feb 23, 2014 · 1 comment
Open

Error when setting validation block #15

ayberkt opened this issue Feb 23, 2014 · 1 comment

Comments

@ayberkt
Copy link

ayberkt commented Feb 23, 2014

The example for setting a validation block is

[self.passwordField setTextValidationBlock:^BOOL(BZGFormField *field, NSString *text) {
    if (text.length < 8) {
        field.alertView.title = @"Password is too short";
        return NO;
    } else {
        return YES;
    }
}];

When I do this however, I get

screen shot 2014-02-23 at 22 21 57

May the example be outdated?

@0thernet
Copy link
Owner

Oh, my bad – I haven't gotten around to bumping the version and submitting a new podspec. I'll do that now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants