All,
I have a table view that I need to react differently when a cell is clicked with string X in it vs string Y. X would take you to to X View (XViewController) and Y would take you to Y View (YViewController), etc etc. Where would be the best place to insert this if statement, and how would I make it transition to the correct view?
Thanks
You want to implement
Then you can access the cell in question to read the string and present the appropriate view controller.
For example:
Then, in whichever viewController is pushed, you can dismiss it with