开发者

Autorotating on iPhone

开发者 https://www.devze.com 2023-03-15 17:44 出处:网络
In a few of my UIViews, I have a few UIImageViews and UILabels. They are in a good position when the UIView is in portrait mode, but the positioning on the UIImageViews and UILabels are messed up when

In a few of my UIViews, I have a few UIImageViews and UILabels. They are in a good position when the UIView is in portrait mode, but the positioning on the UIImageViews and UILabels are messed up when the UIView becomes landscape mode.

H开发者_Python百科ow can I make sure that the UIImageViews and UILabels are in the correct place for both portrait and landscape mode?

Thanks.


Set autoresizingMask properly, this will solve your problem automatically.


You can do.Just Apply Transform to convert their x,y coordinate from landscape to portrait ,etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消