iPad UISplitViewController 视图框架
我想知道如何更改 splitView.view.frame ?
在我的应用程序中,我使用 tabBarController 按选项卡显示不同的 splitView。 但我需要在 tabBar 和 splitView 之间留出一个空白空间来放置另一个视图。
我尝试更改 splitView.view.frame 但它不起作用......有什么想法吗?
I wonder how I can change a splitView.view.frame ?
In my app I'm using a tabBarController to display differents splitViews by tab.
But I need to leave an empty space between my tabBar and my splitView to put another view.
I tried to change the splitView.view.frame but It doesn't work... any idea ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是来自 查看 iOS 控制器编程指南,
所以,我想说你不能这样做。但也许其他人对此有解决方案。
不过,建议是:不要使你的界面复杂化。尝试想一个更好的方式来实现您想要在中间视图中显示的内容,也许将其放置在其他地方或以其他方式呈现。
This is from the Split View Controller section of the View Controller Programming Guide for iOS,
So, I'd say you can't do it. But maybe someone else has a solution for this.
Word of advice, though: don't complicate your interface. Try and think of a better way to achieve what you are thinking of showing in that intermediate view. Maybe place it somewhere else or present it in some other way.