danielreiser
danielreiser

Reputation: 5360

fire back button in UINavigationcontroller with code

How is it possible to get one level up in my navigationcontroller? The docs didn't help me.

[self.navigationController popToRootViewControllerAnimated:YES];

pops to the root(as it says).

[self.navigationController dismissModalViewControllerAnimated:YES];

didn't work either.

Thanks for any help!

Upvotes: 1

Views: 1094

Answers (1)

Josh Lindsey
Josh Lindsey

Reputation: 8803

Use this function:

[self.navigationController popViewControllerAnimated:YES];

Upvotes: 5

Related Questions