WSLoginView
登录窗口,登录动画,登录页面
GitHub: https://github.com/Zws-China/WSLoginView
How To Use
将工程下WSLoginView文件夹导入您的工程项目。
#import "WSLoginView.h"
WSLoginView *wsLoginV = [[WSLoginView alloc]initWithFrame:self.view.bounds];
wsLoginV.titleLabel.text = @"我是一只猫头鹰";
wsLoginV.titleLabel.textColor = [UIColor grayColor];
wsLoginV.hideEyesType = AllEyesHide;//遮挡眼睛类型
[self.view addSubview:wsLoginV];
[wsLoginV setClickBlock:^(NSString *textField1Text, NSString *textField2Text) {
NSLog(@"点击了登录按钮textField1 = %@ textField2 = %@",textField1Text,textField2Text);
UIAlertView *alertV = [[UIAlertView alloc]initWithTitle:@"登录按钮事件" message:[NSString stringWithFormat:@"账号:%@\n密码:%@",textField1Text,textField2Text] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
[alertV show];
}];
遮挡眼睛的样式
typedef enum {
AllEyesHide, //全部遮住
LeftEyeHide, //遮住左眼
RightEyeHide, //遮住右眼
NOEyesHide //两个都漏一半眼睛
}HideEyesType;
(AllEyesHide)全部遮住
(LeftEyeHide)遮住左眼
(RightEyeHide)遮住右眼
(NOEyesHide)两只眼睛都漏一半
github下载地址:https://github.com/Zws-China/WSLoginView
如果觉得对你还有些用,给一颗star吧。你的支持是我继续的动力。