I have a custom-drawn UIView (i.e. uses drawView to render itself). The data to be displayed will usually be larger than the screen can show, so I want to include scroll view functionality in the view so clients of the class don't have to deal with it, and so the custom view can handle lazy loading of data as it's scrolled.
But how do I design a view like this? UITableView takes the approach of inheriting from UIScrollView. I tried doing the same but the scroll bar no longer had an effect on what was displayed (drawView wasn't being called as the bar moved). If I have my custom view include a scroll view, then I need two separate classes (the outer view class and a custom-drawn view that goes inside the scroll view), which is less than optimal.