i'm going off this programming guide on how to create a scrollview programmatically, but i can't get it to work as there's a few things i don't understand http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/NSScrollViewGuide/Articles/Creating.html
right now, i have a window, a custom uiview and a viewcontroller. i try to alloc the uiscrollview inside the viewcontroller's loadView method but it crashes with an unrecognized selector exception.
the problem here is i don't really understand the relationship between the scrollview and the view controller. i know i'll add my custom uiview as a subview to the scrollview, but beyond that not much.
right now, i have a window, a custom uiview and a viewcontroller. i try to alloc the uiscrollview inside the viewcontroller's loadView method but it crashes with an unrecognized selector exception.
the problem here is i don't really understand the relationship between the scrollview and the view controller. i know i'll add my custom uiview as a subview to the scrollview, but beyond that not much.