2

My views are not resizing correctly using something like:

self.someview.autoresizingMask = (UIViewAutoresizingFlexibleHeight| UIViewAutoresizingFlexibleWidth);

Using all the possible resizing masks did not solve the problem either. I am running iOS 5.1 on my phone and 6.0 on the simulator but the result is the same either way. I have attached pictures to better describe the problem. How can I set the autoresizingMask so the view ALWAYS fills the screen?

enter image description here

enter image description here

4

1 回答 1

0

检查 superview 的autoresizesSubviews设置,YES并且您没有为地图设置不正确的框架layoutSubviews。我刚刚添加了地图视图,它按预期调整了大小。

我使用的调整大小蒙版是

UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleRightMargin
于 2012-11-05T07:36:45.997 回答