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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -