0

how can I dismiss a view controller beside the one that the user is currently in?

I need to replace self with the view controller name, but I get SIGABRT when I do so. What do I need to do? Thanks!

[self dismissModalViewControllerAnimated:NO];
Jack Humphries
  • 13,056
  • 14
  • 84
  • 125

1 Answers1

5

Try

[self.parentViewController dismissModalViewControllerAnimated: YES];
Legolas
  • 12,145
  • 12
  • 79
  • 132