SplitView控制器纵向模式 - 顶部按钮不断向右移动

问题描述:

我在ipad中使用了SplitViewController。在一个按钮上点击详细视图,我打开一个全屏模式的模态视图。每当我解除模态视图时,以纵向模式显示桌面视图的按钮会向右移动。SplitView控制器纵向模式 - 顶部按钮不断向右移动

如果我继续打开模式视图并将其解除,它会一直向右移动,直到它消失在屏幕的右侧。

任何想法为什么会发生这种情况?

+0

BTW。这在模拟器上发生。我尚未在设备上进行测试。 – nishantcm 2010-05-17 08:52:47

+0

这也发生在设备上。此外,用于肖像模式的条形按钮也会出现在横向模式中。 – nishantcm 2010-05-18 05:23:01

当any.modalPresentationStyle = UIModalPresentationFullScreen;

我将它更改为any.modalPresentationStyle = UIModalPresentationPageSheet;现在一切都很好。

我确认了变化modalPresentationStyle到UIModalPresentationPageSheet的伎俩 例如:

MY_VC *controller = [[MY_VC alloc] initWithNibName:@"MY_VC" bundle:nil]; 
[controller setModalPresentationStyle:UIModalPresentationPageSheet]; 
[splitViewController presentModalViewController:controller animated:NO];