iPhone view controller view shifted down 20 pixels when rotating to landscape

梦想的初衷 提交于 2019-12-06 10:18:03
Matt

I've experienced this same issue.

This discussion was helpful: UIWebView on iPad size

Tony's answer helped me discover that when you create a subview it's helpful to setup code similar to this:

UIWebView *webView = [[UIWebView alloc] init];
webView.frame = self.view.bounds;

If you post some of your code I may be able to provide more specific advice.

Rather than shifting all views down, try DELTA properties in Interface builder.

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