J.D.
J.D.

Reputation: 103

Going form 1 viewcontroller to another

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...)

Upvotes: 0

Views: 38

Answers (1)

Simon Germain
Simon Germain

Reputation: 6844

Sounds like what you want is an popToViewController:.

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

Upvotes: 1

Related Questions