Hey just use the popup with username and password. Using this u, you can still use Apple docs to use. I did the same with my application. Becz there is no legal way to add, besides splitting, a view as a root view controller.
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Login" message:@"Enter username and password" delegate:self cancelButtonTitle:nil otherButtonTitles:@"Login", nil]; alertView.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput; alertView.tag = AlertOne; [alertView show];
- (void) applicationDidBecomeActive: (UIApplication * application) call this popup in the delegate method in the appdelegate file. It works like a charm.
Deepak
source share