Q:

iPhone app login issue

I have an iPhone application which I'm working on and so far i have created a login page for the application such that only the phone's user can access the application. The login works fine and the application works fine, but when i hit the home button, the app is "minimized". And if accessed again from the task switcher it doesn't prompt for a password.
What exactly would be the best way to go about getting the app to request a password. If it helps i use navigation controllers and i have one view dedicated for the login.
Thanks for the help.

A:

Can't you check app activated in the appdelegate?
- (void)applicationDidBecomeActive:(UIApplication *)application {
    [self showLoginWindow];
}

