How to consistently determine the correct size to layout your view in loadView?
I have different cases where a UIViewController is pushed to a UINavigationController, or a UITabBarController is present, or both. These elements changes the available screen area and makes it inconsistent if I hard code values.
At the moment where loadView is called and I want to know how to size the container view I add my subviews to.
I looked through the UIViewController guide and Apple uses UIScreen mainScreen applicationFrame, but in their example this is done because they are making a full screen app.
I have seen some answers in here, but none that addresses how to do this in a consistent manner.
Thanks for any help given.