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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -