ios - Push view-controller twice -


i have 3 view controllers 2 buttons each one.

first view:

  1. next (go 2 view controller)
  2. end (go 3 view controller)

second view:

  1. back (go 1 view controller)
  2. end (go 3 view controller)

third view:

  1. back (go 2 view controller)
  2. 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

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -