javascript - Determine if UIWebView handled event -
when user taps in uiwebview want show/hide navigation bar. want if uiwebview didn't done in respond event (selected text, invoked javascript).
i've found article determine touch coordinates: http://mithin.wordpress.com/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/
there no information if happened inside uiwebview.
edit: solution intercept unused tap events in uiwebview not working in situation, have pretty complicated html-structure iframes.
i think can take advantage of uiwebviewdelegate , implement methods like:
- (bool)webview:(uiwebview *)webview shouldstartloadwithrequest:(nsurlrequest *)request navigationtype:(uiwebviewnavigationtype)navigationtype
and
- (void)webviewdidstartload:(uiwebview *)webview
to manage whether showing navigation bar or hiding it.
Comments
Post a Comment