Is it possible to query (programmatically, at runtime) what the height/thickness of a navigation bar and/or toolbar will be post-rotation?
That is, when building a frame for a specific subview, I want to set its frame relative to the available space between the navigation bar and the toolbar. To make it smooth, it's best to do this in shouldAutorotateToInterfaceOrientation:
rather than didRotateFromInterfaceOrientation:
, but values such as self.navigationController.toolbar.frame.size.height
are different between orientations and devices.
I'd like to calculate my new subview frame against what the toolbar's thickness will be, and I'd like to do it without hardcoding values such as 32pt, 44pt, etc.
Any thoughts?