UIImageView 子视图的自动旋转
根视图是一个 UIImage 视图,它有子视图,子视图有子视图。我的根视图将在横向中打开,我已在项目的 .plist 中设置了两个项目属性,并在 applicationDidFinishLaunching 中集成了 application.statusBarOreintation 并验证了它是否有效。
但我所有的子视图都以肖像形式出现。如何在我的子视图上更改此设置?
谢谢 // :)
Root view is a UIImage View, it has subviews, those have subviews. My root view will open in landscape i have set both project properties in the project's .plist and have integrated application.statusBarOreintation in applicationDidFinishLaunching and verified that it works.
But all of my subviews are appearing in portrait. How do I change this on my subviews?
Thanks
// :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你有视图控制器吗?您的 shouldAutorotateToInterfaceOrientation 返回什么?
如果没有视图控制器,您将必须应用变换来旋转加载的每个视图。
Do you have a viewcontroller? What is your shouldAutorotateToInterfaceOrientation returning?
Without a viewcontroller, you will have to apply a transform to rotate each view you load.