Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/XiaoYulong/YLSwipeLockView
a swipe password view to unlock an application written in objective-c.
https://github.com/XiaoYulong/YLSwipeLockView
Last synced: about 2 months ago
JSON representation
a swipe password view to unlock an application written in objective-c.
- Host: GitHub
- URL: https://github.com/XiaoYulong/YLSwipeLockView
- Owner: XiaoYulong
- License: mit
- Created: 2015-02-12T02:57:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T02:43:03.000Z (over 7 years ago)
- Last Synced: 2023-10-26T08:24:32.534Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 264 KB
- Stars: 149
- Watchers: 12
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - YLSwipeLockView - A swipe password view to unlock an application written in objective-c. 【 [Priview](https://github.com/XiaoYulong/YLSwipeLockView/raw/master/example.gif) 】 (OOM-Leaks-Crash / Gesture-Biometric Unlock)
README
# YLSwipeLockView
a swipe password view to unlock an application written in objective-c## Requirements
YLSwipeLockView works on iOS 6.0 and later version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
* Foundation.framework
* UIKit.framework
* CoreGraphics.framework
* QuartzCore.framework## Usage
1. Copy the YLSwipeLockView folder to your project.
2. Add YLSwipeLockView as a subview wherever you want and set a delegate to this YLSwipeLockView.```objective-c
YLSwipeLockView *lockView = [[YLSwipeLockView alloc] initWithFrame:CGRectMake(20, self.view.bounds.size.height - viewHeight - 40 - 100, viewWidth, viewHeight)];
[self.view addSubview:lockView];
self.lockView = lockView;
self.lockView.delegate = self;
-(YLSwipeLockViewState)swipeView:(YLSwipeLockView *)swipeView didEndSwipeWithPassword:(NSString *)password
{
//everytime user finish a swipe, this method get called and pass a password, add your logic here.
}
```
## LicenseThis code is distributed under the terms and conditions of the [MIT license](LICENSE).