ios - How to Increase/decrease UIButton width according to title lable text changes? -
the question have asked purely using auto-layout, don't want setup frames manually according text width.
i aware of changes content hugging priority , have used same 1 label , 1 button works fine label not button, can help
if want this, can create custom view: take - uiview
, change it's class uibutton
, add uilabel
, apply required constraints. setup can achieve desire ui. please try if want implement this.
Comments
Post a Comment