Search code examples
iphonecocoa-touchuiwebviewsubclassing

Is subclassing UIWebView frowned upon?


I've heard varying things about whether or not creating a Subclass of UIWebView is allowable. Can someone link me to any documentation that clarifies this one way or another?


Solution

  • Under Subclassing Notes of the UIWebView reference, all it says is:

    Subclassing Notes

    The UIWebView class should not be subclassed.

    It doesn't say why. I would guess that it's to maintain the integrity of the underlying WebKit control or something, I dunno.