user3885597
user3885597

Reputation: 11

Does unwind segue pop off view controllers?

As an unwind segue in Objective-C moved backwards through view controllers does it pop off the view controllers as it goes or does it leave them there?

Upvotes: 1

Views: 183

Answers (1)

Karan Pal
Karan Pal

Reputation: 77

Everything is removed from stack when they are dismissed. Unwind segue is kind of dismissing the view controller. In case you toggle from one view controller to second and from second to third. Those view controllers remain on stack but when you reverse them they are removed from stack.

Upvotes: 1

Related Questions