iOS ScrollView needs constraint for y position or height

前端 未结 8 1645
栀梦
栀梦 2020-11-30 18:21
-ViewController
--View
---ScrollView (Top,Bottom,Leading,Trailing spaces to superview set to 0)
----ContentView (Top,Bottom,Leading,Trailing spaces to superview set          


        
8条回答
  •  萌比男神i
    2020-11-30 18:57

    Set your label left top right and bottom margin constraint with content view of scrollview, and set number of line of UILable to 0. It will expand your content view as per the size of your content

提交回复
热议问题