How to resize UIViewControllerWrapperView

和自甴很熟 提交于 2019-12-12 18:19:34

问题


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];


来源:https://stackoverflow.com/questions/3596015/how-to-resize-uiviewcontrollerwrapperview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!