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 Playlist Browser with Objective-C Working With Multiple View Controllers Modifying the UI

Balint Bejczi
Balint Bejczi
3,375 Points

segueLabelText property not found in playlistDetailViewController.h

Hi, my code's not working somehow...

I declared the segueLabelText property in playlistDetailViewController.h, imported this header to ...Master.m, but Xcode says segueLabelText property is not found..

This are the relevant codes:

playlistDetailViewController.h
@property (strong, nonatomic) NSString *segueLabelText;
playlistMasterViewController.m
#import "playlistDetailViewController.h"

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    if ([segue.identifier isEqual:@"showPlaylistDetail"]) {
        playlistDetailViewController *playlistDetailViewcontroller = (playlistDetailViewController *)segue.destinationViewController;
        playlistDetailViewController.segueLabelText;

Thank's for any help!

Balint

2 Answers

Brayden Kness
Brayden Kness
12,492 Points

Did you synthesize the property?

Balint Bejczi
Balint Bejczi
3,375 Points

I don't know what I did, but now it's working.... (I closed Xcode ad opened in the morning)