iOS: Best way to make a UIScrollView with dynamic height?
问题 I'm currently setting up a UIScrollView with the following structure UIScrollView --ContentView (UIView) --ContainerView1 (UIView) --UILabel1 --UILabel2 --ContainerView2 (UIView) --UILabel3 --UILabel4 --ContainerView3 (UIView) --UILabel5 --UILabel6 I've pinned all the four edges for all the elements above and also have defined their height constraints (Storyboard complaints of zero height if I didn't do so). Now whenever my UILabel receives its text from the server, I call sizeToFit for all