我有一个TabbarController与不同的ViewControllers。 其中一些ViewController应该自动旋转,并且一个ViewController只能在PORTRAIT中呈现。 我填充的TabBar以下程序:UIViewController旋转问题
ChartThemeViewController *chartViewController = [[ChartThemeViewController alloc]
initWithTheme:chartThemeDict];
UINavigationController *theNavigationController = [[UINavigationController alloc]
initWithRootViewController:chartViewController];
[chartViewController release];
[localViewControllersArray addObject:theNavigationController];
[theNavigationController release];
tabBarController.viewControllers = localViewControllersArray;
的ChartThemeViewController是ThemeViewController的子类。 ThemeViewController是UIViewController的子类。
如果我在ThemeViewController的子类中重写'shouldAutorotateToInterfaceOrientation',并在所有子类中返回YES,并在ChartThemeViewController中返回NO ...它碰巧所有ViewController都不自动旋转。
mmmmhhh ......希望你能明白这一点...
我怎样才能解决这个问题?
许多感谢 延
谢谢你这个答案。 – xnz 2010-09-13 09:16:45