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

Popular posts from this blog

go - serving up pdfs using golang -

how to add preprocess loader in webpack 2 -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -