How do I tell when a UIWebView is done rendering (not loading)?

This may depend upon the kind of graphics context you need the view rendered into, but you can call

- (void)drawRect:(CGRect)area forViewPrintFormatter:(UIViewPrintFormatter *)formatter

which apparently tricks the UIWebView into thinking that it’s being printed. This may help if your ultimate goal is to capture the complete page. We’ve had the problem recently in which even if the page was fully loaded, calling plain old -drawRect: didn’t render the entire page if some of it was offscreen.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)