项目介绍:
JJSwipeLockView
a swipe password view to unlock an application written in objective-c
DEMO 直接下载:
RequirementsJJSwipeLockView 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
- Copy the JJSwipeLockView folder to your project.
- Add JJSwipeMainView as a subview wherever you want and set a delegate to this JJSwipeMainView.
[Objective-C] 查看源文件 复制代码
//JJSwipePasswordViewController JJSwipePasswordViewController *vc = [JJSwipePasswordViewController defaultViewControllerWithStyle:JJSwipePasswordStyleCreate]; [self presentViewController:vc animated:YES completion:nil]; - (JJSwipeLockState)swipeView:(JJSwipeMainView *)swipeView didEndSwipeWithPassword:(NSString *)password { //do something }