Quote:
Originally Posted by timeview
I am able to get both tables working fine - I have two tables in one view working but on one table (EKview stuff) I trying to push an subview (based on SimpleEKdemo - calendar apple code) but not getting detail view (It is being called). So I guess my real problem is I am still trying to use Navigation controller to push views on top of each other but with one view being a complex multi-Table view. I get data source ok but can't push EKEvent view on top of this dual table view screen.
|
I would advise against trying to use two separate table view controllers to manage table views on the same screen. Have both table views be managed by the same view controller.
You can set it up 1 of 2 ways:
- Have the view controller serve as delegate and data source for both table views, and check the tableView parameter on the delegate/data source method calls to figure out which table view is calling. With this approach, each table view delegate/data source method would start with an IF statement that decides which table view it's serving.
- Set up separate a TableViewDataSource class that has methods to respond to data source and delegate methods from your table views. Create a TableViewDataSource object for teach table view and make it the delegate and data source of each table view. In this scenario, the view controller will manage the pair of TableViewDataSource objects, which will serve up data to the table views.