ios - Push view-controller twice -
i have 3 view controllers 2 buttons each one.
first view:
- next (go 2 view controller)
- end (go 3 view controller)
second view:
- back (go 1 view controller)
- end (go 3 view controller)
third view:
- back (go 2 view controller)
- start (go 1 view controller)
the problem "back" button of third view controller do:
self.navigationcontroller?.popviewcontrolleranimated(true)
so when come second view, there no problem, return second view, when come first view , press button, app returns first view controller, , want navigate second view.
is there way push 2 view controller when press "end" button in first view controller, when press button in third view controller returns second?
thanks!
you can push multiple view controllers executing navigationcontroller.pushviewcontroller(viewcontrollern, animated: false)
multiple times , set animated
last one.
Comments
Post a Comment