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
Post a Comment