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
danebeaudette
6,173 PointsIssue linking funFactButton to ViewController to change tint.
When I control drag my button labeled funFactButton over to the view controller I am getting an error message. I set the Connection to Outlet, Object is labeled View Controller, Name is funFactButton, Type is UIButton and Storage is Weak. When I click connect I get a error as follows,
Could not insert new outlet connection: Could not find any information for the class named View Controller.
Not sure how this happened. If anyone has any idea let me know. I can submit more information if needed.
1 Answer
Anthony Mikhail
9,942 PointsFound this on StackOverflow. Seems to be a recurring issue with the new version of Xcode.
What solved this issue for me was actually deleting the class from the project.
Steps: In the project file explorer (left panel) find the class and right click -> Delete Remove reference (do not move to trash as you will lose the class for good) Right click on the folder that contained the class -> Add files to ... Find the class you just deleted in the file system This seems to force Xcode to link the class back into the storyboard.