IOS scrollview ambiguous scrollable content height in case of autolayout

前端 未结 2 1685
逝去的感伤
逝去的感伤 2021-02-04 17:26

Hi I am developing small IOS application in which I am using scrollview with auto-layout.Inside scroll I am adding two more views. I am using IB and auto-layout constraints. I a

2条回答
  •  一整个雨季
    2021-02-04 17:55

    I would make this constraint as type equals and give it low priority. Then, during adding dynamic content, you may just add another constraint with higher priority.

    If you load this UIView from xib just make sure you provide constraint with higher priority.

提交回复
热议问题