Skip to content

This is a Gestures password Demo,Implements a simple set password and login validation functions.

Notifications You must be signed in to change notification settings

LiSunny/GesturePasswordView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GesturePassworeView

Instructions

This is a Gestures password Demo,Implements a simple set password and login validation functions.

Show

Alt text

ps:All result is show in code

MainClass

  • GestureButton

Gestures password button class, Independent unit gesture password button

  • GestureView

Gestures password view, Based on the UI changes of the gesture

Integration

First

If you want to use gestures to password, you will only need to drag two core classes into your project and include the header file

#import "GestureView.h"

Second

To achieve the following code

@interface ViewController ()<GestureViewDelegate>
view = [[GestureView alloc] initWithFrame:CGRectMake((CGRectGetWidth(self.view.frame) - 300)/2., CGRectGetHeight(self.view.frame) - 380, 300, 300)];
view.delegate = self;
view.isSingleNode = NO;
view.isVerify = YES;
[self.view addSubview:view];
/**
 *  回调代理方法
 *  {resCode:0000,message:"验证成功"}
 *  resCode 0000 -- 成功
 *                 0001 -- 两次密码不一致
 *                 0002 -- 密码错误
 */
- (void)gestureResult:(NSMutableDictionary *)resultDic
{
    NSLog(@" vc -- %@",resultDic);
}

Third

You are success!!! So easy........

About

This is a Gestures password Demo,Implements a simple set password and login validation functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published