I have a tableview with a few items. I want to get a new view when I click on one of the cells. However, I want the view to be different depending on which cell I clicked. For example: I have a tableview of buildings. These buildings can be Airports, factories and houses.
When I click on a cell that shows an airport, I want the next view to be different than when I click on a cell that shows a factory.
How do I do this?