Note, this is part 2 in the UIKit Dynamics tutorials. In part 1 we talked about getting started using UIKit Dynamics. If you’re not familiar with how to animate views using UIDynamicAnimator and how to make use of UIDynamicBehavior subclasses, it’s crucial to take a look first at part 1.
In part 2, we’ll be discussing 3 more topics related to UIKit Dynamics.
- Collision detection; how to detect collisions between the different animated views and boundaries.
- Stasis; we’ll get to know what’s meant by stasis and how to detect it.
- How to avoid memory cycles in your animation code.