I'm wanting to implement some custom, reusable and efficient scroll behavior in an iPhone app so I'm extending UIScrollView with my custom control and wish to track scroll movements.
Now I'm aware that I could probably assign my custom control as a UIScrollViewDelegate and internally respond to scrollViewDidScroll calls but this doesn't feel correct to me (I may be wrong).
It doesn't feel correct as the delegate is aimed at application specific UI logic and controls should be a level above this. It would also mean I'd need to relay delegate calls out if an application class assigned itself as a delegate too which seems inefficient.
As a direct descendant of UIScrollView I'd expect to be able to override the method that triggers the scrollViewDidScroll delegate call, or be given access to a template method, or listen out for scroll events, but I can't see any such options.
Looking at the UITableView.h file, UITableView doesn't seem to set itself as a UISCrollViewDelegate so I'm wondering how it manages this (I'm assuming as it recycles cells it must track their position relative to the visible bounds).
I'm pretty new to this platform so I may be missing something obvious. Any help appreciated.