Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Fabrizio Scandola
7,650 PointsAutomatically resizing UIButton height based on title - AutoLayout ON
Basically the title explains the problem. Working with XCode, I have this button and I populate its title with different text sources (some are long texts some are short). I just want the button to resize dynamically with the content, using Autolayout.
I can't find help in Treehouse's lessons and it's 3 days that I'm trying to work this around without luck.
I found a solution setting the constraint based on the titleLabel's height but this works only once because the second time I try to set the NEW constraint it says that there is one already in place and it doesn't work.
Thank you for any answer, really.
1 Answer
Fabrizio Scandola
7,650 PointsNobody knows? Come on :D