Successfully reported this slideshow.

UIKit Dynamics

1,730 views

Published on

A short presentation on UIKit Dynamics for the SLO Cocoaheads group

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

UIKit Dynamics

  1. 1. UIKit Dynamics Craig VanderZwaag craig@bluehulastudios.com Tuesday, October 15, 13 @bHCraigV
  2. 2. ADD DEPTH AND GRAVITY AND WEIGHT AND DELIGHT! Tuesday, October 15, 13
  3. 3. UIKIT DYNAMICS • New in iOS7 SDK • Brings real-world physics and interaction behaviors to your apps • 2-Dimensional interaction Tuesday, October 15, 13 animations and
  4. 4. DEMO Tuesday, October 15, 13
  5. 5. HOW? • Integrated physics engine and animator • PhysicsKit- Shared with the new Sprite Kit framework • Based Tuesday, October 15, 13 on Box 2D http://box2d.org
  6. 6. CONCEPTS • Dynamic Items • Dynamic Behaviors • Dynamic Animators Tuesday, October 15, 13
  7. 7. DYNAMIC ITEMS • Objects that can be animated • Minimal set of geometry properties • Don’t necessarily have to be views or even on screen Tuesday, October 15, 13
  8. 8. DYNAMIC BEHAVIORS • Encapsulate • Associated a set of “physical” attributes and behaviors to dynamic items to impart them with behaviors • Gravity, Collision, Friction • Resistance, Velocity, Attachment • Can Be composed in a hierarchy Tuesday, October 15, 13
  9. 9. DYNAMIC ANIMATOR • Coordinates a view the dynamic items and behaviors in • Updates the “scene” with each step of the animation • Holds all the behaviors that describe how dynamic items react Tuesday, October 15, 13
  10. 10. CODE

×