How to resize UIViewControllerWrapperView

2019-07-15 07:08发布

问题:

I'm trying to display an UIImageView within a tab on an iPad. I hide the tab bar and I want the UIImageView to take up the entire screen, ie be full screen. I try resizing everything in sight and the image will not occupy the space used by the tab bar. I've tried debugging, printing the frame for each view going up the view hierarchy. Everything looks ok until it gets up to UIViewControllerWrapperView which has the smaller size.

What is UIViewControllerWrapperView and how do I resize it?

回答1:

have you tried reseting the frame on the UIImageView

[imageView setFrame:theController.view.bounds];