I want to add table view in my view based application, which has a single delegate and some other controllers for different views. Now I want to add a table view with in which on selecting a row a new table view will be opened and in the second tableview selecting a row will show the details related to that row.
Please tell me how can I achieve that, if there is any tutorial related to this then please suggest.
As I have found the tutorials are navigation based. I want as I described above.
See its Very Simple and Easy…. :-
Just go to ur FirstViewController.xib Drag and Drop the tableView on the View. Now in .H file write its delegate like
<UITableViewDelegate,UITableViewDataSource>Now write
IBOutlet UITableView *myFirstTable;in .m file :-
Implement the methods of TableView Required By you.Now in didSelectRowAtIndexPath method write the Code for going to the Another View like
So untill this you will see the SecondViewController on click on Any row cell of FirstTable in the firstViewController.
AND YES DONT FORGET TO SET THE DELEGATE IN YOUR XIB
Now Similarly Implement for second Table. Drag n drop the Table View on your View implement its delegate in .h file(SecondViewController.h)
Implement the Methods of table View Delegates you want and again in didselectRowAtIndexPath method write the Code you want onTapping on the row of a Cell…
i Hope you got this… if not Tell me i will try to be more clear… or provide some Direct code…
but if it helps then Please Accept the Answer and Upvote.. :))