Apple does say in the documentation about the fact that they do not want us to subclass UIWebview. After reading a lot of posts, I think it is the internals of the Webview that makes it complicated 开发者_运维百科and it may be the reason apple has said so.
Iam looking to subclass this. Is there anyone who has faced this problem before?
I have several applications on the AppStore that are subclassing UIWebView (to get the location of a tap on iOS3.x) and I had no issue with validation process regarding this ...
As long as you don't use APIs that are not documented then you should be fine (assuming you don't break any of their other UI guidelines).
However, a bigger question is what are you trying to do that you can't achieve any other way than subclassing? Apple's advice is spot on; UIWebView will be very complicated nd you will probably get something wrong because you don't know it's internal workings.
If you tell us what you're trying to achieve, we might be able to point you in the direction of a better method :)
精彩评论