ipad - iOS 6 中的设备方向从纵向到横向

标签 ipad ios6 uiinterfaceorientation

我想在横向和纵向模式下旋转应用程序。我有一个 View Controller 。一旦我将设备旋转到横向模式。纵向图像和重叠横向图像。我怎样才能实现这一点,请帮我举例。提前致谢。

最佳答案

我认为这是因为autoResizingMask

将你的 UIImageView autoResizingMask 设置为

myImage.autoresizingMask =  UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin;

关于ipad - iOS 6 中的设备方向从纵向到横向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18181300/

相关文章:

c++ - AS3 到 C++ 的转换——可能吗?

ios - 如何在旧版本中创建Objective-C项目

ios - Storyboard忽略 UIInterfaceOrientation 设置

ios - 使用 UIAlertViewStylePlainTextInput 显示 UIAlertView,但不显示键盘

iphone - 如何访问在TabBarViewController中选择的ViewController

iphone - 如何让我的 iPhone 应用程序以横向模式启动?

ios - 是否可以在设备方向更改时更改 Controller 内单个 View 的方向?

objective-c - 纵向的 UISplitViewController : how to hide master popover programmatically?

iphone - 使用 MDM + Enterprise 许可证自动更新 iOS 应用程序

iphone - 检查当前时间是否在时间 A 和 B 之间