Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.14 KB

MIPatternLock

iOS style pattern lock, inspired by http://blog.grio.com/2011/11/android-pattern-lock-on-iphone.html

Installation

MIPatternLockViewController *patternLockVC = [[MIPatternLockViewController alloc] init];
// optional set your transition style
patternLockVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[patternLockVC showPatternLockFor:showForAuthenticate withActiveDotImage:[UIImage imageNamed:@"dot_active"] withInactiveDotImage:[UIImage imageNamed:@"dot_inactive"] withLineColor:nil withCompletionHandler:^(MIPatternLockViewController *viewController, NSString *patternString) {
    NSLog(@"%@", patternString);
}];

choose between types: showForAuthenticate, showForEnable, showForChange, showForDisable

Notes

Designed for iOS 6 & 7.

Screenshots

alt tag==alt tag

License

MIPatternLock is available under the MIT license. See the LICENSE file for more info.