If there are multiple views – say view 1, view 2, view 3, view 4 and view 5, and they are in a navigation stack with view 5 being the present view (which is on top), How can I access a method written in view3 in the controller for view5? Is it done like creating the instance of controller of view3 in the view5 controller and then call the method? But thats not the ideal approach I beleive. Whats the best approach for this scenario?
Share
you can access that by accessing navigation controller stack-
Now you can perform actions that you want.