Skip to content

IrlandArcher/PasswordInputDemo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

一个密码输入框

使用方法:

PWDView *pwd = [[[NSBundle mainBundle]loadNibNamed:@"PWDView" owner:self options:nil]firstObject];

pwd.delegate = self;

pwd.frame = self.view.bounds;

[self.view addSubview:pwd];

    #pragma mark - delegate

- (BOOL)ShouldResignFirstResponderWithInputPassword:(NSString *)pwd{

    if ([pwd isEqualToString:@"123456"]) {

    return YES;

     }

     return NO;

   }

- (BOOL)ShouldShowErrorMessageWithInputPassword:(NSString *)pwd{

    if ([pwd isEqualToString:@"123456"]) {

    return NO;
    }
    return YES;
}

image image

About

ios 自定义密码输入框 password

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%