I have some problems using auto layouts with container Views (in both cases: with the view containment pattern used from ios5 and a simple container view).
I have a sort of custom Master Detail controller, I can resize the left container after some user action and correlating the right controller have to resize accordingly to the new spaces left not used.
For the "detail" controller I setup the controller with a Xib and using auto layout I have some view inside it. in visual format they would be something like that:
- V:|[headerView][contentView][footerView]|
- H:|[headerVieW]
- H:|[contentView]
- H:|[footerView]
this is only a representation to undestand the problem.
If i try to resize the detail controller.view frame this expands correctly but the subviews don't.
in the - (void)viewDidLayoutSubviews method of that controller i tried to set the frames manually and that works but it's not the right thing I suppose since I'm using auto layout!
This problem comes back again if I have a generic view and a subview containing image views, if I define that view from xib using autolayout, if I runtime change the frame after the view is setted up subviews (imageviews for edample) don't resizes.
Anyone can help me out?
Thanks!