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
noahvirani
846 Pointsbutton constraints on a changing UI Image View view
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?
1 Answer
Steven Deutsch
21,046 PointsHey noahvirani,
I'm not sure exactly what you're trying to accomplish here, however, why don't you try centering the button vertically and horizontally in the image. Then setting the button's width and height to have an equal height to the image.
Good Luck