Nikita Arkhipov
Nikita Arkhipov

Reputation: 1258

How to not show intermediate screen and call viewWillAppear when we are dismissing two view controllers back

Let's say I have 3 UIViewControllers: A, B, C. A is presenting B modally and B is presenting C modally. I have exit segue from C to A and everything works fine, but while dismissing controller B is flashing and it's viewWillAppear is called. Is it possible not to show B and don't call it's viewWillAppear in this situation?

Upvotes: 1

Views: 134

Answers (1)

Maulik Bhuptani
Maulik Bhuptani

Reputation: 616

Just a suggestion. Set alpha of view to 0 in viewWillDisAppear of viewcontroller B while presenting C from B. So while dismissing C to move back to A, viewcontroller B will not be visible. Again just a suggestion.

Upvotes: 1

Related Questions