Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ghayenga

macrumors regular
Original poster
Jun 18, 2008
190
0
Someone already asked the exact question I had over on Stack Overflow:

http://stackoverflow.com/questions/1611801/

Basically I can't figure out how the new Kindle app is overriding the UIMenuController and putting up their own menu items when someone does a tap and hold on what is obviously a UIWebView
 
You so sure about that? Maybe it's not. Maybe they've subclassed UIWebView so that they can override some of its default behavior.

A UIWebView subclass is still a UIWebView, and my point is that you don't get touch events in a UIWebView subclass. And I can't see any way to override that default behavior by subclassing a UIWebView. That's why I'm asking the question about how to do it.
 
A UIWebView subclass is still a UIWebView, and my point is that you don't get touch events in a UIWebView subclass. And I can't see any way to override that default behavior by subclassing a UIWebView. That's why I'm asking the question about how to do it.
One way to do it is to place a transparent UIView over the content view and trap the events from there. Sorry, that's kinda what I was hinting at with the "maybe it's not" remark.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.