ALUnlockCodeViewController
Overview
ALUnlockCodeViewController mimics the iPhone's lock screen. You can use it to code-protect your entire apps or just some screens.
You can specify the code length (limited to a maximum of 8 characters) and the component will auto-configure the UI to layout the "text-boxes" accordingly. You can also change the background image, and whether a numberic or alphanumeric keyboard will be used to insert the secret code.
A delegate method will be raised when the user taps the Done button or he reaches the maximum number of numbers/letters, so that you can save or verify the secret code (according to whether the user was choosing the secret code, or he was presented the dialog to type it in before accessing the protected area).
This code snippet shows how to instantiate and present the component in a modal viewcontroller
`ALUnlockCodeViewController *controller = [[ALUnlockCodeViewController alloc] initWithTitle:@"Test 1" `
withCodeLength:4 andDelegate:self];
[self presentModalViewController:controller animated:YES];
[controller release];
When the user is done typing-in the code, the delegate will be called by the ALUnlockCodeViewController with the inserted code in input
-(void)codeView:(ALUnlockCodeViewController*) unlockCodeViewController didReturnCode:(NSString*) code{
NSString *correctPass=@"1111";
if ([code isEqualToString:correctPass]) {
if (unlockCodeViewController == _controller1)
[self dismissModalViewControllerAnimated:NO];
}
}
More item by mobilebricks
ALTabBarController
ALPopupView
ALNavigationController