单击rightBarButton时,将显示UIPopoverController.
问题是:当点击NavigationBar时,此UIPopoverController不会被忽略.
为什么?有没有办法解决它?我试图搜索,但找不到任何关于此的内容.
提前致谢.
我在ipad上有uiviewcontroller这个配置:
shouldAutorotate (true)
supportedInterfaceOrientations (UIInterfaceOrientationMaskAll)
在里面willRotateToInterfaceOrientation我执行一些技巧来调整我的界面.
从这个控制器的一个孩子,我展示了一个带有这个-poor-代码的QuickLookController.
[[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentViewController:previewController animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)
但是,如果我旋转我的ipad方法willRotateToInterfaceOrientation没有被调用,所以我无法做到调整界面的技巧.
有人可以解释我或给我一些建议吗?谢谢
uiviewcontroller ipad screen-rotation presentmodalviewcontroller