开发者

Cocoa Touch Subclass UIScrollView and Custom Delegate Still Receive Parent Delegate Messages

I have subclassed UIScrollView and added my own custom delegate (currently called delegate). I want to add functiona开发者_如何学编程lity such as notifying a user when an image is tapped and perform loading like the table view.

However, If I define my own custom delegate, I can not set the parent delegate for responding to events such as scrollViewDidScroll (I want the subclass to receive these events). Should I rename the delegate in my subclass? Should I be using super.delegate in some form? Does a standard exist for doing this? Thanks!


Does your custom delegate just extend the methods of UIScrollViewDelegate? If it does, just override the methods -scrollViewDidScroll etc and forward the messages onto your own delegate.

Maybe I've misunderstood your question, so I apologize if I have.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜