I am lil bit new to objective C. Here is my requirement. I have a small button in my iPad App on pressing it takes me to a config screen. The requirement is I want to make this button secure. Only users with password can proceed to the config screen. If they do not enter the rite password, it should return back the main screen.
So, I though of something like, on clicking the button open a new window and provide a text field where the users enter the password and based on that move to config screen or not.
Can some help me with a proper pseudo code for me to try ?
Here is my button,
-(IBAction) goBack
{
[self.navigationController popViewControllerAnimated:YES];
}
you need single check, compare use entered password with app password if both match then move forward to config screen.else error message.
instructions(not in obj-c)
some thing like this.
Edit:
You can save password in NSUserDefaults
Edit:
.h file
and make it property with IBOutlet
and in .m synthsize it
and make connection form IB.see the tutorial how to make connection which i suggest you.
now you can access this textField.