开发者

Auto-resizing problem in scrollview subviews

开发者 https://www.devze.com 2023-04-06 07:28 出处:网络
I have a scrollview on a UIView and a series of UIImageViews are placed on the scrollview in a serial man开发者_高级运维ner. My problem is that the image views are not resizing when the device is rota

I have a scrollview on a UIView and a series of UIImageViews are placed on the scrollview in a serial man开发者_高级运维ner. My problem is that the image views are not resizing when the device is rotated. In the viewWillAppear, I added

imageView.autoresizingMask=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
    FirstScrollView.autoresizingMask=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;

Can anybody help me?


You can set it with Interface builder.

0

精彩评论

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