ios - Clear UIWebView Content without a webViewDidFinishLoad delegate callback -


i looking way clear uiwebview content. not want webviewdidfinishload called. not implementing uiwebviewdelegate not option me in case.

loadhtmlstring , loadrequest empty data won't work me since trigger webviewdidfinishload callback.

using stringbyevaluatingjavascriptfromstring: (as suggested in so) not trigger callback. if content pdf format, not clear uiwebview' s content need to.

any idea?

two options:

1) handle case in delegate. can url loaded , triggered webviewdidfinishload, if url empty data - ignore it.

2) remove current instance of uiwebview , add new 1 nothing, @jeepston supposed. check options possible visual glitches on replacement. not sure empty webview, anyway. luck.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -