Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ICPayPassWordDemo.xcodeproj
ICPayPassWordDemo
ICPayPassWordDemoTests
demo
README.md

README.md

CPayPassWordDemo(模仿支付宝密码输入框)

###还是先看看效果图哦 Image #1:先把ICEBTPayPassWord文件夹导入工程,再#import "ICEBTPayPassWordView.h" #2:具体操作步骤 [ICEBTPayPassWordView showPassWordViewInView:^(NSString *password) {

    /**
       这里模拟网络请求,把输入密码和后台的密码进行比较。这里使用要注意发送一个通知出去,我是根据
       通知来获取最终的验证的结果,如果我们输入密码和后台密码一样,则移除当前密码输入框。否则抖动密码
       输入框提示密码错误。
     ***/
    BOOL result = [password isEqualToString:@"123456"]?YES:NO;
    NSDictionary *dic = @{
                            @"validateResult":@(result)
                          };

        [[NSNotificationCenter defaultCenter] postNotificationName:KNotification_ValidatePassWord object:nil userInfo:dic];
    
    
    NSLog(@"password = %@",password);
}];

//简书上也有使用说明哦 http://www.jianshu.com/p/d11453dbd980

You can’t perform that action at this time.