![](/img/trans.png)
[英]Presented SKScene changes back to start scene when changing the device orientation
[英]changing view controller when the device orientation changes
我在xcode 4中制作了一个ios应用程序,我需要一种方法来更改设备方向更改时屏幕上显示的内容。
有谁知道如何做到这一点?
谢谢。
可能您需要首先检查如何检测设备方向是否发生变化,请参见此处: 如何检测方向变化
然后在链接上的示例中,您应该知道如何更改屏幕上显示的视图。 您可以使用诸如addSubview,presentModalViewController,pushViewController(用于NavigationController)之类的方法来实现,例如:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.