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

Jesse Gay
seal-mask
.a{fill-rule:evenodd;}techdegree
Jesse Gay
Full Stack JavaScript Techdegree Student 14,045 Points

I can't get Update Frames to work on my "Show another fun fact" button.

In https://teamtreehouse.com/library/styling-user-interface-elements, I can't get Update Frames to work on my "Show another fun fact" button (the final step described at about 8:26 in the video.) I saw the teacher's note about the new placement of the button. I select my button, click Update Frames, but my button doesn't change and I've still got the red lines.

I was able to add the the height, leading, trailing, and bottom margin constraints. I've tried this 3 times and I'm stuck.

Chris Stromberg
Chris Stromberg
Courses Plus Student 13,389 Points

What is the error listed with the constraints? There is some conflict or ambiguity with the constraints you have set if you are seeing red.

You may want to delete all of the existing constraints listed under the "Size Inspector" for the button and retry adding constraints.

Jesse Gay
seal-mask
.a{fill-rule:evenodd;}techdegree
Jesse Gay
Full Stack JavaScript Techdegree Student 14,045 Points

Thanks Chris and Jeff! For some reason I ended up with an extra Stack View, which was screwing things up. I deleted the Stack View, removed all constraints on the button, then reapplied them. Now it seems to be working fine.

2 Answers

Jeff McDivitt
Jeff McDivitt
23,970 Points

The red lines indicate that there is an issue with he constraints. I would suggest clearing the constraints from the particular object and starting over.