Search code examples
iosobjective-cswiftuistoryboardsegue

Dismiss a viewController from 2 modal presentation to especific viewController


I have next

My storyBoard

I want to dismiss my vc3 to the vc2 the thing is that it was presented by the vc1 so when I do the dismissViewController it returns to VC1, on the navigation from vc1 to vc3 I never instantiates or show the Vc2

Any idea?


Solution

  • Create a delegate method which gets called when you dismiss VC3,and so when the delegate passes to VC1 push VC2