I have a custom UIViewController subclass and I want to override the loadView method. I bumped into the problem that I need the size of the self.view before it is added to its parent (which is a UIViewControllerWrapperView). How can I get the size of the UIViewControllerWrapperView that my view is going to be added to?
If this is not the method that is commonly used, then what should I do to determine the future size of my view manually (and not rely on autosizing)?
EDIT:
Also, when is this UIViewControllerWrapperView created and sized?
It seems that what I want is not possible with the current SDK possibilities, apart perhaps from trying to calculate the space on your screen by yourself.
I solved my problem by setting the autosizing masks of my views in a bit cleverer way.
EDIT: It turned out that I can determine the size I needed in
-(void)viewWillAppear:(BOOL)animated.