I have my view set up in viewDidLoad
. All the different frames and such of the subviews have been defined relative to self.view
. Therefore it doesn't matter what size self.view
is the subviews will always shrink or expand to fit (as it were).
So when I rotate my device I want the view to rotate (easy enough with shouldAutoRotateToInterfaceOrientation:...
) but the subviews stay the same shape.
Calling [self viewDidLoad];
makes all the elements fit, but puts a new layer on top of the previous layout (which is obvious... but i'm just saying to explain what I mean).
Is there any way to refresh the frames of the subviews or something? I don't know what other people do to be honest. Am I going to have to put ALL of my views into the .h file as properties and do everything manually on didRotate...
?