Animate or do special things for each of the 4 state transitions of a View Controller
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PusherPopper.xcodeproj
PusherPopper
.gitignore
LICENSE
README.md

README.md

View-Controllers-4-State-Transitions

Animate or do special things for each of the 4 state transitions of a View Controller

We’re going to do different animations when View Controllers are pushed or popped from the stack. We’ll start with 4 states, being ‘pushed’, ‘popped’, ‘put back’ and ‘popped to’.

  1. ‘Pushed On’ is when you add a new View Controller to the stack and it is now visible.
  2. ‘Popped’ is when your view controller was visible and it is transitioning to be gone.
  3. ‘Put Back’ is when your view controller was visible and another one is going on top of it.
  4. ‘Popped to’ is when your view controller was in the stack and the one on top was just popped.

If you want to slow things down do ‘Slow Animations’ ⌘-T or in the menu Debug->Slow Animations.