【发布时间】:2011-10-12 14:10:57
【问题描述】:
在以纵向模式启动应用程序时,我在通用应用程序中有一个 UIWebview,该应用程序底部以白色边框开头。在风景中它可以工作。
如果我旋转应用程序,那么肖像中的一切都很好。我设置了背景颜色并禁用了滚动。
// set backgroundcolor
[webView setOpaque:NO];
[webView setBackgroundColor:RGB(154, 148, 131)];
//Load the request in the UIWebView.
[webView loadRequest:requestObj];
// prevent scrolling up & down
[[[webView subviews] lastObject] setScrollEnabled:NO];
有人知道为什么会这样吗?
【问题讨论】:
标签: iphone objective-c ipad uiwebview