我的应用程序使用2个UIWindows。 第一个示出具有带有ViewControllers仅旋转到肖像取向一个的TabBar控制器。到此为止,一切都很好。多个Windows轮换问题 - iPhone/iPad的
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (UIInterfaceOrientationIsPortrait(interfaceOrientation));
}
在另一个窗口,我有一个UIViewController旋转到所有的方向。
的问题是,当我告诉第二个窗口
[secondWindow makeKeyAndVisible];
,然后返回到第一个
[firstWindow makeKeyAndVisible];
状态栏旋转到各个方向的活动shouldAutorotateToInterfaceOrientation不会触发。我如何解决这个问题?