My Application flow is as below where A, B , c and D are view controllers. Arrows mark presenting from and to view controllers.
Now I need home button in B , C and D view controller that navigate back to A. I am not using storyboard. Its I am unable to use dismissviewcontroller as it dismisses just once, where in some cases its required 2 or 3 previous view controllers dismiss.
Any suggestions in this regards will be helpful.