View frame size inside UITabBarController / UINavigationController

When determining the view frame size, account for the navigation bar if presented inside a UINavigationController and account for the tab bar if presented inside a UITabBarController.