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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -