Skip to content

Commit 2cfd4dd

Browse files
committed
1 parent c925ca5 commit 2cfd4dd

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.mdown

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,18 @@ Just #import the UIPasscodeViewController.h header
2424

2525
Simple example of how to create UIPasscodeViewController:
2626

27-
`UIPasscodeViewController *passcodeViewController = [[UIPasscodeViewController alloc] initWithDelegate:self];
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];`
27+
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];
4039

4140
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:
4241

0 commit comments

Comments
 (0)