仿微信支付时的弹窗效果
将LrdPasswordAlertView这个文件夹拖入到你的项目中去,并且还需要Masonry这个第三方框架。
block是当密码输入完成后调用的,text则为你输入的密码。
你可以如下面代码类似去调用它:
- (IBAction)pop:(id)sender {
LrdPasswordAlertView *testView = [[LrdPasswordAlertView alloc] initWithFrame:self.view.bounds];
testView.block = ^(NSString *text){
NSLog(@"调用了block");
};
[testView pop];
}
###2016/3/31日更新 可以自定义标题,字号,label会随着标题的长度而动态增长
喜欢就给颗星呗~
我的博客地址:我的博客