iPhone SDK - UIWebView has a grey box over it

后端 未结 7 502
长发绾君心
长发绾君心 2021-01-14 01:30

Sometimes, my UIWebView will have a grey box over part or all of the content. I can\'t make heads or tails of why it\'s happening. It happens regularly for certain content.

相关标签:
7条回答
  • 2021-01-14 02:20

    I've got the same problem. I put a UIWebView inside a big TableViewCell (>1024px) and when I scroll to the bottom of the cell, there is this grey box.

    But, if I put a UILabel (also with a big size > 1024px), there is no grey box. So I think this has nothing to do with a max height of a UIView (BTW I can't find anything about this so called 1024 max height). I think it's more a UIWebView issue.

    The solution for me is to reload the content of the webview when the grey box appears. Actually, I just have a HTMLString to load so I call [webview loadHTMLstring:] again, and the grey box disappear.

    Hope that will help

    0 讨论(0)
提交回复
热议问题