Autorotating on iPhone
In a few of my UIView
s, I have a few UIImageView
s and UILabel
s. They are in a good position when the UIView
is in portrait mode, but the positioning on the UIImageView
s and UILabel
s are messed up when the UIView
becomes landscape mode.
H开发者_Python百科ow can I make sure that the UIImageView
s and UILabel
s 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.
精彩评论