thebossman
thebossman

Reputation: 4698

TTNavigator popViewController?

Is there a TTNavigator equivalent to UINavigationController's popViewController? (or an alternative method to dismiss a view controller that I can't find?)

Upvotes: 2

Views: 1601

Answers (3)

Trausti Thor
Trausti Thor

Reputation: 3774

I use the code below, and I do get a warning, but it works as expected.

[[TTNavigator navigator].visibleViewController.navigationController popViewControllerAnimated:YES];

Upvotes: 0

cutemachine
cutemachine

Reputation: 6250

You can access the navigation controller through the TTNavigator and call popViewControllerAnimated. Something like this:

[[TTNavigator navigator].topViewController.navigationController popViewControllerAnimated:YES];

Upvotes: 2

Arman
Arman

Reputation: 856

Through some quick googling I found this page: http://api.three20.info/interface_t_t_navigator.php

I think this is the method you are looking for:

(void) - removeAllViewControllers
Removes all view controllers from the window and releases them.

Upvotes: 2

Related Questions