1

I have this same code at the end of each view to go to the next:

- (IBAction)proceed2 {
    StepThree *one = [[[StepThree alloc] initWithNibName:@"StepThree" bundle:nil]      autorelease];
    one.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:one animated:YES];
}

This has worked in every view except this one, and all of my code looks exactly the same except for different step numbers (not always StepThree). I imported "StepThree.h" just as I did in all of them... why is this one giving me problems?

By the way, it is in the line

[self presentModalViewController:one animated:YES];

and the error is "Thread 1: Program received signal: "SIGABRT"."

Matt
  • 15
  • 3

1 Answers1

1

The code you post seems correct.

The problems arises presumably due to something in StepThree implementation.

A good way to diagnose this kind of bad behavior is enabling "zombies" detection. See here for details.

Community
  • 1
  • 1
sergio
  • 68,819
  • 11
  • 102
  • 123