我有 2UIViewController
秒:
UIViewControllers1
UIViewControllers2
UIViewControllers2.view
作为 subView 添加到UIViewControllers1.view
.
问题是在调整大小UIViewControllers2.view
时不想自动UIViewControllers1.view
调整大小(UIViewControllers1 setFrame:frame
)。
[UIViewControllers1.view setAutoresizesSubViews:YES]
[UIViewControllers1.view setAutoResizeMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]
[UIViewControllers1.view addSubview:UIViewControllers2.view];
如何解决?