Consider three different controllers A, B and C where A is initial controller in Navigation Controller.
Now I push to B and then push to C.
A --> B --> C
Then I want to go from C to A. How can I go there with a single push and animation. I guess the way would be finding the controller A from the navigation stack and call popToController
method. Let me know If any other better way.
Now main question is how can I pass the data from C --> A
.
If it's from B --> A
I could use the delegation. But for C --> A
what could be done to use the delegation?
I do have workaround by using observer, singleton, reactive patterns. But I would like to know if any better way can be used.