ios - Close 2 view controllers at once -



ios - Close 2 view controllers at once -

using swift, i'm opening sec view controller this:

let vwstarttransaction = self.storyboard!.instantiateviewcontrollerwithidentifier("starttransactionview") transactionviewcontroller; self.presentviewcontroller(vwstarttransaction, animated: true, completion: nil);

and then, within sec view, i'm opening 3rd 1 in same way.

let vwconfirmtransaction = self.storyboard!.instantiateviewcontrollerwithidentifier("confirmtransactionview") confirmviewcontroller; self.presentviewcontroller(vwconfirmtransaction, animated: true, completion: nil);

now, when pressing "confirm" button in confirmation controller, want close both views i'm in initial view. can tell me best approach realise this?

why not utilize 1 viewcontroller , have 2 views displayed. hide or show them @ , dismiss single vc when done. if must way dismiss 1 vc , send message other 1 dismiss well.

ios iphone swift

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -