-1

I am having single table view in a view controller. That table view lists the countries first. When I click on a country(row), it has to push the same view controller's view with cities under that country. I need to see the slide animation, which we usally get while pushing views in navigator.

Is it possible to use the pushViewController for the same view controller by calling the tableView reloadData with city data (This should happen when country is selected) ?

Please let me know whether it is possible..

Thanks in advance.. Raj

raksja
  • 3,969
  • 5
  • 38
  • 44
  • Sorry for this question! As I am a very beginner I don't know the actual flow of the view controllers. I am clear now. Please never mind this question. – raksja Sep 02 '09 at 12:07
  • Voting not to close, but please provide some code on your question that demonstrates what you've done so far so people can understand it better. – John Humphreys Oct 10 '12 at 17:51

1 Answers1

0

You can't push twice the same instance in the UINavigationController: "This object cannot be an instance of tab bar controller and it must not already be on the navigation stack." Instead you could allocate another instance of your UITableView or design a new class to handle cities.

rjobidon
  • 3,055
  • 3
  • 30
  • 36