我有2个GUI和2个控制器 1称为景观控制器,第二个称为高控制器。旋转肖像景观2 XIB
现在一般我所说的highguicontroller,当我转动我的iPhone它检测到,然后显示landscapeguicontroller: 代码:
landscapeguicontroller *neu =[[landscapeguicontroller alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:neu animated:YES];
[self dismissModalViewControllerAnimated:YES];
的问题是,那么动画从推新窗口超出了iPhone的一边,进入窗口。
在Landscapeguicontroller,我已经加入到了下面几行:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
时,我想回去highguicontroller我打电话:
[self dismissModalViewControllerAnimated:YES];
所有作品,只是在第二个动画我看到了正确的“旋转动画”。 你有什么建议吗?
那么短的问题描述:在 从高分到景观1.动画,景观被推到窗口 但在2动画从景观到高,旋转看起来像一个真正的旋转...
我想1.animation模样2.动画
问候 Ploetzeneder