I have a viewcontroller that is embedded in both a navigation and tabbar viewcontroller. I had assumed that the self.view would geometrically be the bounds starting at the bottom of the navbar and the top of the tab bar. This is what I have read online. That by viewWillAppear
the view is resized to subtract the tab and nav bar from the height, essentially. However, this is not happening for me. When I log out the frame of my view it is the same... {{0, 0}, {375, 667}}
. In viewDidLoad
, viewDidLayoutSubview
, willAppear
, DidAppear it is that same frame. Therefore, if I put an imageView as a subview of self.view with a frame (0,0,screenWidth, 200)
. That imageView appears occluded by the nav bar. To my reading, this isn't the standard behavior.
0
votes