Skip to content

Commit 33e25ff

Browse files
committed
README.mdown
1 parent 3de2d7f commit 33e25ff

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

README.mdown

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,22 @@ Just #import the UIPasscodeViewController.h header
2424

2525
Simple example of how to create UIPasscodeViewController:
2626

27-
`
28-
UIPasscodeViewController *passcodeViewController = [[UIPasscodeViewController alloc] initWithDelegate:self];
27+
`UIPasscodeViewController *passcodeViewController = [[UIPasscodeViewController alloc] initWithDelegate:self];
2928

30-
UINavigationController *navController = [[UINavigationController alloc]
29+
UINavigationController *navController = [[UINavigationController alloc]
3130
initWithRootViewController:passcodeViewController];
3231

33-
[self setNavigationController:navController];
32+
[self setNavigationController:navController];
3433

35-
[window addSubview:[navController view]];
36-
[window makeKeyAndVisible];
37-
38-
[window release];
39-
[navController release];
40-
`
34+
[window addSubview:[navController view]];
35+
[window makeKeyAndVisible];
36+
37+
[window release];
38+
[navController release];`
4139

4240
Your class will have to implement the UIPasscodeViewControllerDelegate protocol, and to implement the `didShowPasscodePanel:panelView:`, `shouldChangePasscode:panelView:passCode:lastNumber:` and `didEndPasscodeEditing:panelView:passCode:` methods from this protocol:
4341

44-
`
45-
- (void) didShowPasscodePanel:(UIPasscodeViewController *)passcodeView panelView:(UIView*)panelView
42+
`- (void) didShowPasscodePanel:(UIPasscodeViewController *)passcodeView panelView:(UIView*)panelView
4643
{
4744
[passcodeView setTitle:@"Set Passcode"];
4845

@@ -92,8 +89,7 @@ Your class will have to implement the UIPasscodeViewControllerDelegate protocol,
9289
}
9390

9491
return TRUE;
95-
}
96-
`
92+
}`
9793

9894
Class References
9995
----------------

0 commit comments

Comments
 (0)