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 trialStijn van Lieshout
3,646 PointsAdding a new cocoa file that inherits from UIViewController doesn't work...
I've been adding a cocoa file exactly as instructed in the video but instead of a new view controller, the file displays the code below. I'm really confused about what's going on here. Anybody else who had this issue? Tips on how to solve this?
import Cocoa
class TestController: UIViewController {
1 Answer
Paul Brazell
14,371 PointsAre you making sure that the file is in the iOS category? Looks like you made a OS X view controller.
Stijn van Lieshout
3,646 PointsStijn van Lieshout
3,646 PointsOops I see, what a stupid mistake. Thanks for the quick response!