iphone - UIWebView touch event not getting fired -
i new iphone developer,
i want detect touch in webview tried method not getting fired,
in .h file
@interface epubreaderviewcontroller : uiviewcontroller in .m file
... - (void)sendevent:(uievent *)event{ nslog(@"touch detected") ; } ... even tried also,
- (void) touchesbegan:(nsset*)touches withevent:(uievent*)event { nslog(@"touches began"); } thanks in advance !
user going zoom in , zoom out on website, touch click hpyerlinks etc. that'w shy touch methods won't respond uiwebview.
if want enable touch, might need subclass uiwebview while forbidded in developer docs, check following threads more discussion-
handling touches inside uiwebview
https://stackoverflow.com/questions/2122745/how-to-detect-touch-event-in-uiwebview
how intercept touches events on mkmapview or uiwebview objects?
handling touches inside uiwebview
you can go through tutorial -
http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way
Comments
Post a Comment