Skip to content

Zws-China/WSLoginView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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)全部遮住

all

(LeftEyeHide)遮住左眼

Left

(RightEyeHide)遮住右眼

遮住右眼

(NOEyesHide)两只眼睛都漏一半

NO

如果觉得对你还有些用,给一颗star吧。你的支持是我继续的动力。

About

登录窗口,登录动画,登录页面

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published