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

iOS

Image View trouble

my app is heavily imaged based and when i add constraints to that view image streche and contracts but i want my button to be pinned to the image so the button stays in the same place in the image view, but when i add constraints it is pinned to the certain place in the UI Image view what do i do? please help

2 Answers

I would try using stack views. They really help do a lot of auto layout stuff for you. Theres a really good video demonstrating it here.

Thanks i already see some changes! i still have to play around with stack view to see if it completely fixes my problem. thanks for all your help!