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 Diary App Using Core Data Custom Detail View Controller Implementing a UIImagePickerController

Dawid Cedrych
Dawid Cedrych
15,108 Points

Image selection button - missing part of video

The video "Implementing a UIImagePickerController" starts with method called ImageSelectionButtonWasPressed which actually wasn't implemented in the previous video, I don't know how the outlet is connected. What should I do to get my app working?

2 Answers

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

The outlet in question is linked from the button placed on the left of the label - check the previous video ( Implementing a UITextView ) at 2:48 where the button is configured with no title and an image instead of the text.

The button is linked to an IBOutlet and an IBAction at 3:07 in the video called "Implementing a UITextView".

It looks like perhaps when filming the video, they have done it in two different ways and not checked that these match across videos.

In the first video, as Dawid notes, Ash had an action called imageButtonWasPressed. In the next video, it's changed to imageSelectionButtonWasPressed.

I can't see any other references to it in my project - so I suspect either is just fine.

ian tsai
ian tsai
4,298 Points

I see the same as David, the ImageSelectionButtonWasPressed wasn't implemented. The one Robert was pointing out is the imageButtonWasPressed, not the imageSelectionButtonWasPressed. So is there a video missing???