UIWebView redraw unpredictable/no way to force offscreen redraw
| Originator: | colin.cornaby | ||
| Number: | rdar://10442882 | Date Originated: | 14-Nov-2011 12:54 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone/iPod Touch | Product Version: | 9A405 |
| Classification: | UI/Usability | Reproducible: | Sometimes |
Summary: If a UIWebView is offscreen, it's redraw is unpredictable. This makes it difficult to cleanly load content into a hidden web view, and then animate it on screen. The web view either will not have the content drawn, or it will still have the old content on screen momentarily before the new content draws. This occurs if the view is faded in even in response to a content did finish loading delegate call. Steps to Reproduce: 1) Hide a web view. 2) Load new content in the view 3) Fade in the view when the view finishes loading Expected Results: The web view should fade in with the new content Actual Results: The web view can fade in with the old content. Regression: This happens reliably with certain pages, unreliably with others Notes: It's understandable that web content doesn't necessarily have a rigid drawn state, given the possibility for animations. But it would be nice to either know when the initial draw happens, or to be able to force a redraw to sync with any animation.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!