Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated readme

  • Loading branch information...
commit b6e2e01f3f818ba99415e1944c6f76d8bd7da6e9 1 parent 84a876b
@calebd calebd authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 README.markdown
View
12 README.markdown
@@ -32,8 +32,12 @@ 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
@@ -41,8 +45,8 @@ 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:
Please sign in to comment.
Something went wrong with that request. Please try again.