https://github.com/eaceto/eapasscodelock
A Lock view controller with passcode for iOS
https://github.com/eaceto/eapasscodelock
Last synced: about 1 year ago
JSON representation
A Lock view controller with passcode for iOS
- Host: GitHub
- URL: https://github.com/eaceto/eapasscodelock
- Owner: eaceto
- Created: 2012-06-23T01:11:00.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-06-24T21:52:00.000Z (almost 14 years ago)
- Last Synced: 2025-03-02T14:51:45.706Z (over 1 year ago)
- Language: Objective-C
- Size: 597 KB
- Stars: 12
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
EAPasscodeLock
# Description
This library for iOS provides a simple way to implement a passcode lock screen. It can be used on iPod Touch, iPhone and iPad.
# Implementation
1) Copy the following files into your project
EAPasscodeLockProtocol.h
EAPasscodeLock.h
libEAPasscodeLock.a
PasscodeResources.bundle
2) Config "Library Search Paths" into Targets' Build Settings with a reference to the directory where libEAPasscodeLoc.a is present
3) Under Build Phases -> Copy Bundle Resources, ensure PasscodeResources.bundle is there
4) Add this two imports to your code
#import "EAPasscodeLock.h"
#import "EAPasscodeLockProtocol.h"
5) Perform a simple call that shows the lock screen
EAPasscodeLock* passcodeManager = [[EAPasscodeLock alloc] init];
UIViewController* plViewController = [passcodeManager passcodeViewControllerWithCode:@"1234" cancellable:YES hintText:@"Please enter a four digits number." maxRetries:4 delegate:self];
[self presentModalViewController:plViewController animated:NO];
6) Implement the only obligatory method
-(void)passcodeDidUnlockedSuccessfully;
7) Your are done!