Re: Subclassing UIWebview a show-stopper?
Re: Subclassing UIWebview a show-stopper?
- Subject: Re: Subclassing UIWebview a show-stopper?
- From: David Duncan <email@hidden>
- Date: Tue, 9 Aug 2011 09:57:00 -0700
On Aug 8, 2011, at 10:51 PM, arri wrote:
> After allot of writing test-cases, and googling for others' experiences, i found that the most easy and straightforward way of achieving what i want, is to simply subcass UIWebView and override UIViews' - hitTest:withEvent method. However, as everyone emphasize everywhere i look, the docs say i "should" not subclass UIWebView.
There are a /lot/ of gotchas with UIWebView, so much so that even things that you might consider as an innocent override can have impact that you would not expect. If there were two ways to do something, and one involved subclassing UIWebView and the other did not, I would nearly always choose the method that didn't involved subclassing.
So the question to you becomes what problem are you trying to solve that you believe you need to override -hitTest:withEvent:?
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden