ios - Displaying a different UITable by selecting a cell from a previous UITable -


i new ios , objective-c programming, , having few problems. want create app 4 tiers (hierarchy).

the first 3 tiers must have tableviews , last 1 must have labels , textfields.

through storyboard able create , populate 3 tier tables fourth tier labels , textfields (i have embedded each of tables, etc in own navigation controller.

each table can have number of cells. each cell must point different table in following tier (if select first cell in top tier must display first table in second tier ... etc , if select second cell in top tier table must display second table in second tier .. etc.

at moment if select of cells in table don't different tables in next tier same table in next tier.

secondly : values of selected cells in each tier (table) must available use in final tier of hierarchy want manipulate selected data

thanks much

in didselectrowatindexpath method of table view

write

uistoryboard *mainstoryboard = [uistoryboard storyboardwithname:@"yourstoryboardname" bundle:nil];  yourdestinationviewcontroller *myvc = (yourdestinationviewcontroller *)[mainstoryboard instantiateviewcontrollerwithidentifier:@"yourdestinationviewcontroller"] [self presentmodalviewcontroller:myvc animated:yes]; 

hope helps.


Comments