IPhone Password Integration

I want to integrate an access code into an existing application. Does anyone know of any good textbooks or ones that could help in my search? Is there a standard Apple tutorial for integrating it? I could not find it, but I believe that it would be as simple as entering the keyboard view correctly in the didFinishLaunching and resignActive methods? Would a keychain be a good place to store it? Again, I would not want to reinvent the wheel, especially if there is a proven safe method. Here is one good tutorial that I could find, but it does not include a view or multiple call points. http://gorgando.com/blog/topics/technology/iphone_development/simple-iphone-tutorial-password-management-using-the-keychain-by-using-sfhfkeychainutils

Thank!

+5
source share
2 answers

I went through this, but I don't have a Api link or anything you can use, but some tips:

- With multitasking, you must call the presentation of the access code in the getActive method in the application delegate, so that your application can request the access code when it returns in the background.

basically you should call the passcode in two ways:

- (void)applicationDidEnterBackground:(UIApplication *)application

- (void)applicationDidBecomeActive:(UIApplication *)application

, , , , , , , , , , , , , .

, = D, , , , .

- , - , , .

- , viewController , . .

, ,

+2

NSUserDefaults * standardUserDefaults = [NSUserDefaults standardUserDefaults];

if (standardUserDefaults) 
{
    [standardUserDefaults setObject:passCodeTextField.text forKey:@"lock"];
    [standardUserDefaults synchronize];
} 

- , , , othervise .

appDelegate, ,

NSUserDefaults * standardUserDefaults = [NSUserDefaults standardUserDefaults];   if (standardUserDefaults)       self.passCodeString = [standardUserDefaults objectForKey: @ "lock" ];

perticular ( ).

+1

All Articles