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 Build a Simple iPhone App with Swift 2.0 View Controllers and Views Using IBAction to Execute Methods

Could not insert new action connection ?

I am using Swift 3 (up to date as of 12-5-16)

When I control-drag from the Button to the same spot he did on the assisted editor, and fill out just like he did, it says "Could not insert new action connection: Could not find any information for the class named ViewController."

I have the same code as in the video up until this point. Any suggestions as to what is happening here?

3 Answers

Does the button appear in the storyBoard?

Yes it was appearing in the storyBoard.. but I got it to work! I updated to swift 3 in the middle of creating the FunFacts right before this step. After I converted the project to work in swift 3 it was not allowing me to do this. So i created a new project and got to this point and it works fine now! must have been an error while converting it or something, but after updating and starting the project over it is working fine.

you should work with the 7.3.1 version