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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -