I have the following tables
Bike Brands (Parent):
id | brand
---------------------
1 | Trek
2 | Salsa
Bike Models (Child)
id | model | brandid
------------------------------------------
1 | Superfly FS | 1
2 | Vaya 3 | 2
3 | Superfly 9 SL | 1
4 | Vaya 7 | 2
I have two UITableViewController. I want to pass from one tableview to another and to show only bikes from the chosen brand.
To pass data from one tableview to another need to use prepareForSegue?
I tried different queries inner join to show bikes from chosen brand but I cant find one that is working.
""ex: What I want is when choose brand for EX Trek to show all models for this brand in another tableview
Aucun commentaire:
Enregistrer un commentaire