presentModalViewController正在接管整个iPad屏幕,而不仅仅是右侧? [英] presentModalViewController is taking over whole iPad screen, not just right hand side?
问题描述
我在iPad上使用 APSplitViewController
来获得双方。在右侧工作时,我有一个位于 UINavigationController
内的viewController。
I'm using the APSplitViewController
on the iPad to get two sides. When working within the right hand side I have a viewController that sits inside a UINavigationController
.
当我以模态方式呈现 EKEventEditViewController
(因为它必须是模态的)时,它不会留在界限内右手边的navController但接管了整个iPad显示屏,事情开始变得更糟......
When I modally present EKEventEditViewController
(as it has to be modal) it doesn't stay inside the bounds of the right hand side navController but takes over the whole iPad display, and things start getting worse from there...
有没有办法让模态视图保持在上下文中本地 UINavigationController
我正在屏幕的右侧工作?
Is there a way to keep the modal view within the context of the local UINavigationController
I'm working with on the right hand side of the screen?
EKEventEditViewController *addController = [[[EKEventEditViewController alloc] initWithNibName:nil bundle:nil] autorelease];
addController.eventStore = self.eventStore;
addController.editViewDelegate = self;
[self presentModalViewController:addController animated:YES];
PS。事实上,这对任何简单的视图控制器(不仅仅是EKEventEditViewController)来说都是一个问题。那是在尝试使用presentModalViewController时。一个代码示例,说明如何使presentModalViewController工作,因此它只占用右侧非常好
PS. This is actually an issue for any simple view controller (not just EKEventEditViewController) in fact. That is when trying to use a presentModalViewController. A code example of how to make "presentModalViewController" work so it only takes up the right hand side would be great
推荐答案
目前为止据我所知,最好用EKEventEditViewController更新APSplitViewController的rightViewController,以在右侧边界显示EKEventEditViewController。
As far as i know, it's better to update rightViewController of your APSplitViewController with EKEventEditViewController to display EKEventEditViewController in bounds of right side.
这篇关于presentModalViewController正在接管整个iPad屏幕,而不仅仅是右侧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!