ios 子视图随父视图改变大小
2019-07-13 本文已影响0人
米开朗骑騾
//view1父视图
view1.autoresizesSubviews =YES;
//view2子视图
view2.autoresizingMask =
UIViewAutoresizingFlexibleLeftMargin |
UIViewAutoresizingFlexibleWidth |
UIViewAutoresizingFlexibleRightMargin |
UIViewAutoresizingFlexibleTopMargin |
UIViewAutoresizingFlexibleHeight |
UIViewAutoresizingFlexibleBottomMargin ;