0

I have 3 view controllers: VC1,VC2, VC3. The navigation is made pushing viewcontrollers (forward) like this: VC1 -> VC2 -> VC3. Now once I an in VC3, pressing a button I want to go back to VC1 (not VC2). If I use a pop I'd go into VC2, but how would I go directly from VC3 into VC1? (Like poping twice...)

J.D.
  • 103
  • 9

1 Answers1

1

Sounds like what you want is an popToViewController:.

Take a look a this solution: Can i pop to Specific ViewController?

Community
  • 1
  • 1
Simon Germain
  • 6,834
  • 1
  • 27
  • 42