Push to root View controller in UIStoryboard
I have hierarchy of ViewControllers in my storyboard structure. It is A-B-C-D . A is embed with NavigationController and the flow goes on till D viewController . All fours view attached through segues. Now I am on D viewController , I defined some action to the button of D that It should take me directly to A viewController that is rootViewController or B viewController . Then how can I achieve this. I tried everything but didn't succeed. I want something like it should not disturb A-B-C-D flow and it should take me to A viewController from D . Right click on your D viewcontroller and drag i