Must I call super when I implement -scrollViewDidScroll: of UIScrollViewDelegate in an UITableView?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-04-20T11:33:56Z Indexed on 2010/04/20 11:43 UTC
Read the original article Hit count: 659

Filed under:
|

I made a custom UITableView subclass and implemented this:

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
    // scrolled...
}

Now, what I think is that UITableView may also love to get this message for some obvious reasons. However, when I don't forward that to super, for some reason, everything still works fine. Must I forward that guy to super? I mean...it's a delegate method implementation, but as far as I'm aware of, this would still override anything implemented in UITableView, or not?

Edit: I see...the delegate could be anyone. Never mind about this. BUT: What I have such a thing in a superclass, and make a subclass. How would I even know that the superclass does implement that method and I must forward it to super?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview