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
Nadia Bluhm
2,124 PointsBuild a simple IOS app with Swift 3 errors when run?
Not sure what went wrong when I created the IBOutlet for the label and misspelled it and then tried to remove it and rename it and ran it. Now I can't get it to work.
Here are screenshots of what I got after problems occurred.
https://www.dropbox.com/s/npchl24fc7r1aro/Screenshot%202017-04-30%2014.12.33.png?dl=0
https://www.dropbox.com/s/ehvu4nh7dxiy1mi/Screenshot%202017-04-30%2014.39.04.png?dl=0
What's going wrong? How do I fix things?
3 Answers
Luis Corvalan
iOS Development Techdegree Student 1,752 PointsThe problem was that when you renamed the IBOutlet the old name of the IBOutlet was still held on the label. to fix it first go to Utilities at the top right, then go to Connections Inspector, then go to Referencing Outlets and you'll see the old name of the IBOultet. Click the x to erase and then add the new IBOutlet to the label.
Nadia Bluhm
2,124 PointsHi Luis,
Thanks for your reply.
When I go to the storyboard, I get the following ... what is going on?
https://www.dropbox.com/s/bqo9rwf2lc4mc79/Screenshot%202017-05-01%2015.58.08.png?dl=0
Luis Corvalan
iOS Development Techdegree Student 1,752 PointsBecause at the top right you selected, Show the version editor, it looks like two opposite arrows. To fix it go and click on, Show the Standard Editor, which looks like 5 lines on top of each other which is near the, Show the version Editor.
Nadia Bluhm
2,124 PointsThanks!
Luis Corvalan
iOS Development Techdegree Student 1,752 PointsYour welcome!