I have an initial ViewController
that is a TableView
with lots of data. I have a title bar button item that links to another TableView
with a summary of the data in the first ViewController
. I currently have it so that when you click on a cell
, it redirects the user back to the first ViewController
and scrolls them to the proper cells
. However, it adds the view to the stack and doesn't actually move them back properly. I think I would be able to do this through Unwind
segues, but I can't seem to get them to work through cell clicks. Is there a better way that I can achieve this?
When I switch to the other view, I also need to set two variables in the initial controller to tell it what index to scroll to.