横向 iPad 以纵向显示视图,然后快速将其旋转为横向
我正在为 iPad 构建的应用程序遇到一些小问题。我有几个固定在纵向模式下的视图,以及其他可以在纵向或横向模式下工作的视图。一切都很好 - 我有 shouldAutorotateToInterfaceOrientation: 给我正确的结果,并且视图最终确实以正确的方向结束。
我说“最终”是因为当我将设备置于横向模式时,我的一些视图会出现这种奇怪的行为,当我切换到它们时,它们会以纵向模式出现,并且可见旋转到横向模式。它相当快,但它是可见的且令人恼火的。奇怪的是,它只发生在 3 个视图中的两个中 - 第三个视图没有这种行为。这是一致的——每次我进入“问题”视图时,他们都会给我同样令人讨厌的行为。
还有其他人看过这个吗?我做错了什么导致这个?
I have a little issue with an application I'm building for the iPad. I have several views that are fixed in portrait mode, and others that can work in either portrait or landscape mode. Everything is fine - I have shouldAutorotateToInterfaceOrientation: giving me the correct results, and views do eventually end up in the right orientation.
I say "eventually" because a couple of my views have this odd behavior when I have the device in landscape mode where when I switch to them they come up in Portrait mode and visible rotate to Landscape mode. It's pretty fast, but it's visible and irritating. The odd thing is that it only happens in two of the 3 views - the third view doesn't have that behavior. It's consistent - every time I go to the "problem" views they give me the same annoying behavior.
Has anybody else seen this? What am I doing wrong that is causing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须在 Info.plist 中设置所有支持的方向
You have to set all supported orientations in your Info.plist