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

General Discussion

I am unable to create IBActions or Outlets.

I started with an empty project, added a storyboard and 2 view controller files, and put a view with a label on my storyboard file. But when i open assistant editor It will not let me select the View controller files that I have added to display side by side with the Storyboard. If I change assistant editor to automatic and the select my view controller file, if I drag a line from the '+' on the referencing outlet creator, It will not link with that file, and I am unable to make a Referencing Outlet, or Action.

Does anyone know how to fix this?

2 Answers

There should be arrows above the code in the assistant editor. click on the arrows and it should take you to another header file then click on the file next to the arrows and it should display a list of header files. Make sure you have the right name of the view controller in the utilities. You have to connect the '+' sign with the storyboard buttons or labels. It would be best just to connect the buttons and labels to the actual file itself.

The only file that comes up when I click on the file next to the arrows is UIViewController.h, which is not one of the files I added.

How do i know if my view controller has the right name?

What do you mean by connect the buttons and labels to the file itself?

OK, so eventually I found this video: https://www.youtube.com/watch?v=SoGNKwbbD6I And what you have to do is go to the Object Library, and drag the 'Object' object into the document outline. Then you have to Click on that Object in the Object Library and enter the Identity inspector. Change the Custom Class of the Object to the class of the view controller you have created, and that will fix your problem.