Skip to content

Commit 18c1146

Browse files
committed
1 parent 33e25ff commit 18c1146

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.mdown

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,20 @@ Just #import the UIPasscodeViewController.h header
2525
Simple example of how to create UIPasscodeViewController:
2626

2727
`UIPasscodeViewController *passcodeViewController = [[UIPasscodeViewController alloc] initWithDelegate:self];
28-
29-
UINavigationController *navController = [[UINavigationController alloc]
30-
initWithRootViewController:passcodeViewController];
31-
32-
[self setNavigationController:navController];
33-
34-
[window addSubview:[navController view]];
35-
[window makeKeyAndVisible];
36-
37-
[window release];
38-
[navController release];`
28+
29+
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:passcodeViewController];
30+
31+
[self setNavigationController:navController];
32+
33+
[window addSubview:[navController view]];
34+
35+
[window makeKeyAndVisible];
36+
37+
[window release];
38+
39+
[navController release];`
40+
41+
3942

4043
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:
4144

@@ -131,4 +134,3 @@ Switch to the previous passcode panel.
131134
`-(BOOL)nextPanel`
132135

133136
Switch to the next passcode panel.
134-

0 commit comments

Comments
 (0)