Bonjour,Comment modifier RootViewController (dans AppDelegate) à partir de CustomViewController?
Mon application a une forme d'autorisation (SigninController) qui est chargé dans AppDelegate, et après la signature de (vérification est en SigninController.m) TabBarController doit apparaître (comme vue principale de l'application).
Comment changer le contrôleur de Signin à TabBar et où ??
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
SigninController *aSigninController = [[SigninController alloc] initWithNibName:@"SigninView" bundle:nil];
self.currentController = aSigninController;
[aSigninController release];
self.window.rootViewController = self.currentController;
[self.window makeKeyAndVisible];
return YES;
}
SigninController.m
- (IBAction)signinClick
{
........
if (loginOK == YES)
{
//This place is ready to send messages to show TabBar
} else {
UIAlertView *alert = ......
[alert show];
[alert release];
}
}
Veuillez marquer le langage de programmation que vous utilisez. –