UISplitViewController - 在景观问题中在详细视图控制器上呈现模式视图控制器
当我尝试通过以下代码在横向模式下的 UISPlitViewController 的详细视图上显示模式模式下的某些视图时:
UIViewController *controller = ....
controller.modalPresentationStyle = UIModalPresentationPageSheet;
[self.detailedViewController presentModalViewController:controller animated:YES];
...在关闭它之后,详细视图将移动到左侧并隐藏在主视图控制器后面。看起来详细视图的原点转移到主视图的原点(在我的例子中是菜单)? 为什么会发生这种情况?
When I try to show some view in modal mode over the detailed view of the UISPlitViewController in landscape mode by this code:
UIViewController *controller = ....
controller.modalPresentationStyle = UIModalPresentationPageSheet;
[self.detailedViewController presentModalViewController:controller animated:YES];
...after dismissing it, detailed view is moved to the left and hides behind master view controller. It looks like origin of the detailed view shifts to the origin of the master view (menu in my case)?
Why is it happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 SplitViewController 上显示模态视图,而不是在细节上。
Show the modal view over your SplitViewController, not over the detail.