开发者

iPhone autoresizing

开发者 https://www.devze.com 2023-01-03 08:01 出处:网络
Is there a \"stick-to-bottom\" autoresizing mode in Cocoa-Touch? Basically, I got a UIImageView in the lower part of another UIView. When the UIView resizes, I don\'t want to change the UIImageView\'s

Is there a "stick-to-bottom" autoresizing mode in Cocoa-Touch? Basically, I got a UIImageView in the lower part of another UIView. When the UIView resizes, I don't want to change the UIImageView's size, but keep it in the lower part of the UIView, while only resizing the other su开发者_Go百科bviews in my UIView above the UIImageView.

Is that easily feasible?


Assuming you want to have the image view resize horizontally:

imageView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleWidth;
0

精彩评论

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

关注公众号