Jack Humphries
Jack Humphries

Reputation: 13267

How to dismiss a certain view controller

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];

Upvotes: 0

Views: 1652

Answers (1)

Legolas
Legolas

Reputation: 12345

Try

[self.parentViewController dismissModalViewControllerAnimated: YES];

Upvotes: 5

Related Questions