I have a UIView which contains lot of labels, buttons, textviews. But there is a certain part of that UIView that I want to make scrollable.Here is how
UIView
You better should let the compiler figure out the height, instead of setting it yourself.
CGFloat height = 0; for (UIView *v in _scrollView.subviews) { height += v.frame.size.height; } _scrollView.contentSize = CGSizeMake(self.view.frame.size.width, height);