Hey guys,
is it OK for a subclass to implement its own delegate protocol? I have a subclass of UIScrollView which needs to respond to events like scrollViewDidEndDecelerating and scrollViewDidScroll. Therefore, I had to set the delegate property to self and implement the delegate methods inside the subclass. Nevertheless, other classes should still be able to receive these events too, as if they were using the superclass. For example, I want my subclass to do something special when the inherited scrollview ends scrolling, though the external delegate still needs to be informed about the event. Instances of the subclass and the subclass itself use the same delegate object/property. Is this even possible and would it be a safe approach or should the delegate used within the subclass get its own, private property? I appreciate any help you can provide!
Cheers,
Alex 🙂