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 Self-Destructing Message iPhone App Retrieving and Viewing Data from Parse.com Viewing Images Using UIImageView

Nick Kohrn
Nick Kohrn
36,935 Points

Xcode Not Recognizing ImageViewController

I am currently working through the self-destructing messaging app as part of the iOS track and I have run into a problem. During the Viewing Images Using UIImageView video I have added the line of code just as Ben did: 'ImageViewController *imageViewController = (ImageViewController *)segue.destinationViewController;'

The error I get is: https://www.dropbox.com/s/bm1ghbdlegrokww/Screen%20Shot%202014-08-28%20at%202.52.03%20PM.png?dl=0

Any ideas of how to rectify?

2 Answers

Caleb Abraham
Caleb Abraham
15,158 Points

import "ImageViewController.h"

perhaps???

Nick Kohrn
Nick Kohrn
36,935 Points

Importing the ImageViewController.h was done as instructed in the video, but the problem persists.