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 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.