I have a problem with a segue. I have "next" button:
- (IBAction)NextButton:(id)sender {
//...
[self performSegueWithIdentifier:@"adaugaScore" sender:self];
}
and this:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    if ([[segue identifier] isEqualToString:@"adaugaScore"])
    {
        ScoreViewController *scoreVC = segue.destinationViewController;
        scoreVC.score = [NSString stringWithFormat:@"%d",score];
    }
}
My app crashes at this line:
[self performSegueWithIdentifier:@"adaugaScore" sender:self];
With this error:
has no segue with identifier 'adaugaScore''
 
     
     
     
    