How can I do the following in a UIViewController (containing a tableview as a subview)
I initially have a UIViewController showing a preview section (UIView)
scroll.contentSize = CGSizeMake(self.view.frame.size.width, self.view.frame.size.height);
It can not scroll because contentSize is not large enough. You need to increase the length to total length of your content that are on top of the scrollView.