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

Swift iOS / Xcode 6.4 -- not able to add a button or other controls to default view controller in new project

Every time I create a new Swift iOS project using Xcode 6.4, I'm not able to add a button or other controls to the view controller. I drag the button over the controller and release it, but it just snaps back to controls list in the right panel of Xcode. If I try adding a new view controller, same thing happens with that.

I've Googled this problem a lot with different keywords, but no luck. I've also checked every Xcode setting I can see vs. my daughter's identical project in Xcode 6.4 -- she's not getting the issue, but I can't find any differences.

This has been an intermittent problem that now is happening 100% of time I'm using Xcode, so it's blocking work on my Treehouse portfolio projects for the job-ready checklist. My timeline for getting these done is already pretty tight -- please help!

2 Answers

You tried using the zoom in / out buttons in the Storyboard? Its not the most user friendly thing to drag and drop.... I find alot of the time you have to be on 100% zoom to easily connect stuff and add items.

Mike, thanks so much -- that worked!

I still wish I understood why better -- I already had the storyboard zoomed in quite a bit, and I could see very clearly where I was dragging and dropping the buttons with a TON of whitespace all around the landing area.

But, it worked!

Cheers,

Cotten