Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>you need single check, compare use entered password with app password if both match then move forward to config screen.else error message.</p> <p>instructions(not in obj-c)</p> <pre><code>if userEnterPassword==app.password push-&gt;configView else msg(error); </code></pre> <p>some thing like this.</p> <p><strong>Edit:</strong></p> <p>You can save password in NSUserDefaults</p> <pre><code>-(void)setPassCode { NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults]; if (standardUserDefaults) { [standardUserDefaults setObject:passCodeTextField.text forKey:@"lock"]; [standardUserDefaults synchronize]; } } and these line for checking in a button click -(IBAction)checkPassCode { NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults]; NSString *passcode== [standardUserDefaults objectForKey:@"lock"]; if([passcode isEqualToString:lockTextField.text]) { Second *obj=[[Second alloc] initWithNibName:@"Second" bundle:nil]; [self.navigationController pushViewController:obj animated:YES]; [obj release]; } else { UIAlertView *confirmAlertView=[[UIAlertView alloc]initWithTitle:@"" message:@"Error" delegate:nil cancelButtonTitle:@"YES" otherButtonTitles:@"NO",nil]; [confirmAlertView show]; [confirmAlertView release]; } } </code></pre> <p><strong>Edit:</strong></p> <p>.h file</p> <pre><code> UITextField *lockTextField; </code></pre> <p>and make it property with IBOutlet</p> <pre><code>@property (nonatomic,retain) IBOutlet UITextField *lockTextField; </code></pre> <p>and in .m synthsize it</p> <pre><code>@synthesize lockTextField; </code></pre> <p>and make connection form IB.see the tutorial how to make connection which i suggest you.</p> <p>now you can access this textField.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload