Autolayout resize button based on text and have textfield fill available space

前端 未结 2 1915
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 18:17

I am working on an ios application using autolayout,

I have a UITextField and a UIButton next to it horizontally.

The UIButton text is changed dynamically. It ca

2条回答
  •  一个人的身影
    2021-02-04 18:32

    increase button horizontal content hugging priority such that it is higher than the adjacent components' horizontal content hugging priority

提交回复
热议问题