Reputation: 103
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
Reputation: 6844
Sounds like what you want is an popToViewController:
.
Take a look a this solution: Can i pop to Specific ViewController?
Upvotes: 1