J'utilise des onglets personnalisés (3 onglets) dans mon application. Chaque onglet est contrôlé par le contrôleur de navigation comme indiqué ci-dessous. Le problème est que lorsque l'autorotation est en cours, chaque autorotation prend fin sur le contrôleur racine mais le contrôleur enfant (shouldAutorotateToInterfaceOrientation) ne répond pas.iphone autorotate issue
NSMutableArray *localControllersArray = [[NSMutableArray alloc] initWithCapacity:3];
UINavigationController *localNavigationContriller;
XXXViewController *mail;
xxx = [[XXXViewController alloc] initWithTabBar];
localNavigationContriller=[[UINavigationController alloc] initWithRootViewController:xxx];
[localNavigationContriller.navigationBar setBarStyle:UIBarStyleDefault];
localNavigationContriller.navigationBar.tintColor = [UIColor colorWithRed:134/255.0 green:187/255.0 blue:34/255.0 alpha:1];
[localControllersArray addObject:localNavigationContriller];
[localNavigationContriller release];
[xxx release];
YYYViewController *rsvn;
yyyy = [[YYYViewController alloc] initWithTabBar];
localNavigationContriller=[[UINavigationController alloc] initWithRootViewController:yyyy];
[localNavigationContriller.navigationBar setBarStyle:UIBarStyleDefault];
localNavigationContriller.navigationBar.tintColor = [UIColor colorWithRed:134/255.0 green:187/255.0 blue:34/255.0 alpha:1];
[localControllersArray addObject:localNavigationContriller];
[localNavigationContriller release];
[yyyy release];
TempController *tem;
tem = [[TempController alloc] initWithTabBar];
localNavigationContriller=[[UINavigationController alloc] initWithRootViewController:calendar];
[localNavigationContriller.navigationBar setBarStyle:UIBarStyleDefault];
localNavigationContriller.navigationBar.tintColor = [UIColor colorWithRed:134/255.0 green:187/255.0 blue:34/255.0 alpha:1];
[localControllersArray addObject:localNavigationContriller];
[localNavigationContriller release];
tabBarController.delegate=self;
tabBarController.viewControllers = localControllersArray;
[localControllersArray release];
essaie d'utiliser la fonction de code de cet éditeur ici. – WrightsCS