I have a UIScrollView and numerous labels embedded in it. However, if the bottom labels‘ text is longer than usual, the text is being cut off, that is, the UIScrollView won’t let me scroll…
How can I fix it?
EDIT: right, sorry…
The labels are created programmatically using the following:
UILabel *parametersLabel = [[UILabel alloc] initWithFrame:CGRectMake(10,previousLabelFrameOriginY + previousLabelFrameSizeHeight + 10,self.view.frame.size.width - 10,20)];
parametersLabel.text = self.parameters;
parametersLabel.backgroundColor = [UIColor clearColor];
[parametersLabel setFont:[UIFont fontWithName:@"HoeflerText-Regular" size:16]];
parametersLabel.numberOfLines = 0;
[parametersLabel sizeToFit];
[self.scrollView addSubview:parametersLabel];
I have not programmed UIScrollView – it has the default settings that the Storyboard assigns to it.

Try to change the
contentSizeof your scroll view based on heights and postions of your labels.For example: