Reputation: 172
I have a custom container view controller(red background color). Front view controller added as child view controller. Container view controller supports UIInterfaceOrientationMaskPortrait
, child view controller supports all orientations. When rotate the simulator , views do not position correctly.
Here is the view hierarchy.
Upvotes: 0
Views: 70
Reputation: 172
I solved the problem by setting child controller view's autoresizingMask
to UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight
.
Upvotes: 1