a swipe password view to unlock an application written in objective-c
JJSwipeLockView 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
- Copy the JJSwipeLockView folder to your project.
- Add JJSwipeMainView as a subview wherever you want and set a delegate to this JJSwipeMainView.
//JJSwipePasswordViewController
JJSwipePasswordViewController *vc = [JJSwipePasswordViewController defaultViewControllerWithStyle:JJSwipePasswordStyleCreate];
[self presentViewController:vc animated:YES completion:nil];
- (JJSwipeLockState)swipeView:(JJSwipeMainView *)swipeView didEndSwipeWithPassword:(NSString *)password
{
//do something
}
This code is distributed under the terms and conditions of the MIT license.