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 Designing and Starting the App Adding Login and Sign Up Screens

im confused

please help

MusicViewController.m
#import "MusicViewController.h"

@implementation MusicViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}
     - (void) addSong { [self performSegueWithIdentifier:@"showAddSong" sender:self]; }

}

-(IBAction)addSong {}


@end

1 Answer

Hi there,

There are two stages to this challenge. You have completed both correctly but have some extra code that's not needed.

The first step is to define the mthoed skeleton. You're told what that looks like in the question - you should end up with:

- (void)addSong{

}

That's just a blank definition of the method.

Next, you need to fill in the segue code, which you have done correctly already. You end up with one method added to the code provided (so delete anything else you added) which looks like this:

- (void)addSong{
  [self performSegueWithIdentifier:@"showAddSong" sender:self];
}

I hope that helps.

Steve.