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!

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 Build a Simple iPhone App (iOS7) Creating a Data Collection Implementing an Array

My label has two boxes around it

Hi, my label for the prediction text has two boxes around it; a solid line box with the prediction text and a dotted line box surrounding the first box. When I move the text box, the dotted line box doesnt move. I really dont care about the dotted line box, but when I run the app, my prediction text always shows up in the dotted box, no matter where I place the text box.
Any hints? thx

3 Answers

Stone Preston
Stone Preston
42,016 Points

have you implemented any sort of autolayout constraints? if so something is probably not right with your constraints and you may be getting a warning about it. I would remove any constraints you have and then add them again and be sure you get blue lines (not the ornageish yellow lines)

Maybe, how do I check?

Stone Preston
Stone Preston
42,016 Points

click your label, in the size inspector scroll down, see if there are any constraints there at the bottom of the size inspector. They have gears next to them, click the gear and select remove. If you dont have any constraints, could you post a screen shot of what you are seeing (the dotted line box and the solid line box)

That was it - Thank you!