Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在横向和纵向模式下旋转应用程序。我有一个视图控制器。一旦我将我的设备旋转到横向模式。纵向图像和重叠横向图像。我该如何实现这一点,请帮我举个例子。提前致谢。
我认为这是因为autoResizingMask。
给你的 UIImageView autoResizingMask 作为
myImage.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin;