2

I have Navigation View controller that contains web view. The top bar of Navigation View is "Traslucent Black Navigation bar"

The web view display html that conatins "textarea" html element. I notice when user try type on the textarea, upper part of "textarea" get covred by the "Traslucent Black Navigation bar".

Is there a way to fix this?

4

1 回答 1

2

您需要将 UIWebView 的框架向下调整 44 个点(UINavigationBar 的标准高度)

webView.frame = CGRectMake (webView.frame.origin.x, (webView.frame.origin.y + 44), webView.frame.size.width, webView.frame.size.height);

于 2012-05-21T18:40:04.713 回答