Questions tagged «landscape-portrait»

4
在iOS 8中处理方向更改的“正确”方法是什么?
有人可以告诉我在iOS 8中使用纵向和横向界面方向的“正确”或“最佳”方法吗?似乎我要用于此目的的所有功能在iOS 8中均已弃用,而我的研究却没有找到清晰,优雅的替代方法。我真的应该看一下宽度和高度来确定自己是纵向还是横向模式吗? 例如,在我的视图控制器中,应如何实现以下伪代码? if we are rotating from portrait to landscape then do portrait things else if we are rotating from landscape to portrait then do landscape things
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.