Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Playlist Browser with Objective-C Refactoring Our Code Determining Playlists Programmatically

don't see outlet collection in connections inspector

I created the property playlistImageViews in the playlistMasterViewController as such:

@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray *playlistImageViews;

After I went to the storyboard clicked on the playlistMasterViewController view and checked the connection inspector. I was unable to see any options for outlet collections.

2 Answers

Ryan Jin
Ryan Jin
15,337 Points

You first have to select the view controller. To do that, click on the view, and hit the left button on the top, which is yellow. You can then go to the connection inspector and you will see all the connections between your code and the view.

I had the same problem until I added a semi-colon after my property statement. Try that.