SplitView 中 RootController 视图的位置问题
我更改了分割视图的 rootView 控制器以添加一个 UIimage 和一个 UIView。一切正常,但当我在纵向模式下导航并更改为横向模式时,我的视图比必须保持的位置低了几个像素。如果我以横向模式导航,则不会发生这种情况。最奇怪的是,如果我以纵向方式导航,按下弹出按钮,然后更改方向,则根视图位于完美的位置:S。
就像弹出窗口将其放在正确的位置一样。
你能帮我一下吗?
非常感谢。
I changed my rootView controller of my split view to add one UIimage and an UIView. All works fine but when I navigate in portrait mode and change to landscape mode my view is a few pixels down than it have to stay. If I navigate in landscape mode it doesn't occur. And the most strange is if I navigate in portrait and I push the popover button and then I change the orientation, the view of the root is in the perfect place :S.
Is like the popover put it in the correct place.
Could you help me please?
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
frame
且未正确显示的位置。autoresizingMask
。如果没有发现问题,请将您的代码放在这里。
frame
of your views that are not correctly displayed.autoresizingMask
of your all view.If problem wasn't found place your code here.
最后我解决了问题:当我关闭弹出窗口时,我必须退出动画。如果我这样做,一切都会正常:)
Finally I resolve the problem: When I dismiss the popover I have to get out the animation. If I do this, all works fine :)