I currently have a simple iPhone app that loads a custom subclass of UIView. There's only one controller at the moment for the whole application, although there are several UIViews for separating the program logically.
My current structure looks something like this:
mainView : UIScrollView
\__ has one subView : myCustomUIView : UIView
\__ has many subSubView : myOtherCustomUIView : UIView
I hope this is clear; a colon, of course, represents inheritance.
My issue is this: I need to intercept events at the lowest level, subSubView. I can probably do this in the application controller if I need to, but should I have a subSubViewController instead? Should I have a subViewController too?
If so, can someone point me towards some references for doing this by hand? I can of course create the classes, but connecting them to custom views seems nontrivial. I'm not using interface builder at all aside from the main nib that holds the window object.
My main confusion arises from what will happen when I have a view nested in a view with a different controller. So let's say I did have a subSubViewController, but mainView still has its mainViewController. Since subSubView is contained within mainView, would this not cause some issue?
And should I be using delegates at all for any of this?
Any nudge in the right direction would be appreciated.