ios - Unwind to specific instance of ViewController -
i have viewcontroller i'm re-instantiating navigate instance of (there's reason this) following code:
let viewcontroller = storyboard.instantiateviewcontrollerwithidentifier("completionviewcontroller") as! completionviewcontroller self.navigationcontroller?.pushviewcontroller(viewcontroller, animated: true) everything works fine, except when try unwind... since every instance of control has unwind method:
@ibaction func unwindtothisviewcontroller(segue: uistoryboardsegue) {} it ends unwinding last instance of vc instead of first (which want), example:
vc1 > vc2 > vc3 > unwind here i want unwind "vc1", unwinds "vc3".
is there anyway can unwind first instance of vc; or in example "vc1"?
in completionviewcontroller, there 3 icons @ top of view. if ctrl drag left yellow icon right red 1 (the "exit") can choose unwinding segues. can use unwind in code ;)
Comments
Post a Comment