views:

117

answers:

1

Right now I have an indexed tableview that goes to a detail view but i want it to go to another tableview then a detail view.

Any thoughts?

+1  A: 

Use a UINavigationController with the first table view as its root view controller.

Implement the tableView:didSelectRowAtIndexPath: method of the table view's delegate to create the second table view (from a nib or programmatically, doesn't matter, as long as it's an instance of UITableViewController), then call the navigation controller's pushViewController:animated: method with the new controller.

Then, from the second controller, present your detail view as you are doing so already.

See also:

Tim