All Projects → iosdeveloperpanc → Pcgestureunlock

iosdeveloperpanc / Pcgestureunlock

目前最全面最高仿支付宝的手势解锁,而且提供方法进行参数修改,能解决项目开发中所有手势解锁的开发

Labels

Projects that are alternatives of or similar to Pcgestureunlock

logitech-m720-config
A configuration script for Logitech M720 that remaps mouse buttons (Linux)
Stars: ✭ 59 (-91.5%)
Mutual labels:  gesture
React Native Gesture Handler
Declarative API exposing platform native touch and gesture system to React Native.
Stars: ✭ 4,487 (+546.54%)
Mutual labels:  gesture
Sensitive
Special way to work with gestures in iOS
Stars: ✭ 547 (-21.18%)
Mutual labels:  gesture
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (-59.51%)
Mutual labels:  gesture
Imucalibration Gesture
calibration for Imu and show gesture
Stars: ✭ 382 (-44.96%)
Mutual labels:  gesture
React Native Swipe Gestures
4-directional swipe gestures for react-native
Stars: ✭ 471 (-32.13%)
Mutual labels:  gesture
react-gesture-gallery
a react image gallery with gesture support
Stars: ✭ 14 (-97.98%)
Mutual labels:  gesture
Macgesture
Global mouse gestures for macOS
Stars: ✭ 626 (-9.8%)
Mutual labels:  gesture
Patternlocker
Android 图形解锁/手势解锁 / 手势密码 / 图案密码 / 九宫格密码
Stars: ✭ 409 (-41.07%)
Mutual labels:  gesture
React Native Reanimated
React Native's Animated library reimplemented
Stars: ✭ 5,501 (+692.65%)
Mutual labels:  gesture
Arkit
ARKit Base Project. Place virtual objects based on WWDC example project
Stars: ✭ 297 (-57.2%)
Mutual labels:  gesture
Giraffeplayer2
out of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
Stars: ✭ 344 (-50.43%)
Mutual labels:  gesture
Comfortable Swipe
Comfortable 3-finger and 4-finger swipe gesture using Xdotool in native C++
Stars: ✭ 483 (-30.4%)
Mutual labels:  gesture
Gnome Shell Extended Gestures
Better touchpad gesture handling for GNOME
Stars: ✭ 281 (-59.51%)
Mutual labels:  gesture
Any Touch
👋 手势库, 按需2kb~5kb, 兼容PC / 移动端
Stars: ✭ 567 (-18.3%)
Mutual labels:  gesture
react-native-gesture-detector
Create and detect custom, complex gestures in React Native. 🍭
Stars: ✭ 75 (-89.19%)
Mutual labels:  gesture
Better Gesture
A gesture library use for pc, mobile, vue, and mini programs
Stars: ✭ 419 (-39.63%)
Mutual labels:  gesture
Lunar Unity Console
High-performance Unity iOS/Android logger built with native platform UI
Stars: ✭ 628 (-9.51%)
Mutual labels:  gesture
Navigation Toolbar
Navigation toolbar is a slide-modeled UI navigation controller made by @Ramotion
Stars: ✭ 587 (-15.42%)
Mutual labels:  gesture
Nanogallery2
a modern photo / video gallery and lightbox [JS library]
Stars: ✭ 488 (-29.68%)
Mutual labels:  gesture

PCGestureUnlock

目前最全面最高仿支付宝的手势解锁,而且提供方法进行参数修改,能解决项目开发中所有手势解锁的开发

宣言:不仅仅是支付宝手势解锁,它很好很强大~

框架基础:全面实现支付宝手势解锁,包括各种细节!!!(具体见gif图片)

框架目标:打造主流手势解锁终结者,简单易用,高度解耦!

框架特点:面向实际项目开发,修改参数(PCCircleViewConst.h文件中)即可实现实际需求

设置密码:

ABC

细节处理之全方向箭头

ABC

细节处理之错误绘制

ABC

细节处理之跳跃连线

ABC

框架使用说明: 使用前说明: 解锁界面(PCCircleView)可以实例化出特定使用的类型界面,实现以下方法即可 // 初始化方法(设置view的相关类型、参数) - (instancetype)initWithType:(CircleViewType)type clip:(BOOL)clip arrow:(BOOL)arrow; clip代表圆内是否剪切 arrow代表是否有三角箭头

1.包含框架文件:(FrameWork) 2.在使用到的控制器中实现以下方法: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view.

 // 解锁界面  默认clip:YES, arrow:YES
 PCCircleView *lockView = [[PCCircleView alloc] init];  
  lockView.delegate = self;
  self.lockView = lockView;
  [self.view addSubview:lockView];
 }

  #pragma - mark - circleView - delegate
  #pragma mark - circleView - delegate - setting
  - (void)circleView:(PCCircleView *)view type:(CircleViewType)type connectCirclesLessThanNeedWithGesture:(NSString *)gesture
{
 NSString *gestureOne = [PCCircleViewConst getGestureWithKey:gestureOneSaveKey];

  // 看是否存在第一个密码
 if ([gestureOne length]) {
     NSLog(@"提示再次绘制之前绘制的第一个手势密码");
 } else {
     NSLog(@"密码长度不合法%@", gesture);
 }
 }

  - (void)circleView:(PCCircleView *)view type:(CircleViewType)type didCompleteSetFirstGesture:(NSString *)gesture
{
   NSLog(@"获得第一个手势密码%@", gesture);
   // infoView展示对应选中的圆
}

- (void)circleView:(PCCircleView *)view type:(CircleViewType)type didCompleteSetSecondGesture:(NSString *)gesture result:(BOOL)equal
{
 NSLog(@"获得第二个手势密码%@",gesture);
 if (equal) {
     NSLog(@"两次手势匹配!可以进行本地化保存了");
  
 } else {
     NSLog(@"两次手势不匹配!");
 }
  }

#pragma mark - circleView - delegate - login or verify gesture
  - (void)circleView:(PCCircleView *)view type:(CircleViewType)type didCompleteLoginGesture:(NSString *)gesture result:(BOOL)equal
{
    // 此时的type有两种情况 Login or verify
    if (type == CircleViewTypeLogin) {
       if (equal) {
         NSLog(@"登陆成功!");
       } else {
        NSLog(@"密码错误!");
       }
 } else if (type == CircleViewTypeVerify) {
     
       if (equal) {
           NSLog(@"验证成功,跳转到设置手势界面");
           
       } else {
         NSLog(@"原手势密码输入错误!");
           
    }
    }
}

#PCGestureUnlock 手势解锁终结者

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].