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
Eliot Murton7,315 Points
Xcode. I accidentally deleted out linked to a button and now I cant seem to get it back!
I al following the course on creating a playlist app with Swift and it looks like I accidentally deleted an output that was linked to a button. An error did not show up until later. When I ctrl drag to create a new output the drop down does not appear for me to recreate it. Please help!
Andrzej Filipowicz2,845 Points
If you do some dragging, I'm guessing you are using storyboards. If that's the case, open your storyboard / XIB file and in Xcode press cmd + alt + 0 (opens Utilities pane), select your UI element, that you want to connect the output to and in the utilities select the last menu (arrow inside a circle - "connections inspector"), delete the old connection which should appear there, then you should have no problems dragging and connecting whatever you want from storyboard to code.