Permalink
Browse files

updated readme

  • Loading branch information...
1 parent 84a876b commit b6e2e01f3f818ba99415e1944c6f76d8bd7da6e9 @calebd calebd committed Oct 8, 2010
Showing with 8 additions and 4 deletions.
  1. +8 −4 README.markdown
View
@@ -32,17 +32,21 @@ EXAMPLE:
Delegate Method
----
- - (BOOL)isPINCodeValid:(NSString *)PIN {
- return [PIN isEqualToString:@"1234"];
+ - (BOOL)pinView:(GCPINViewController *)pinView validateCode:(NSString *)code {
+ BOOL correct = [code isEqualToString:@"1234"];
+ if (correct) {
+ [pinView dismissModalViewControllerAnimated:YES];
+ }
+ return correct;
}
Create View
----
GCPINViewController *pinView = [[GCPINViewController alloc] initWithNibName:@"PINViewDefault" bundle:nil];
[pinView setDelegate:self];
- [pinView setPromptText:@"Enter Your PIN"];
- [pinView setTitleText:@"PIN Code"];
+ [pinView setMessageText:@"Enter Your PIN"];
+ [pinView setTitle:@"PIN Code"];
[pinView setErrorText:@"Awww You Suck"];
THEMES:

0 comments on commit b6e2e01

Please sign in to comment.