concept gravity behavior in category ios

appears as: gravity behavior, The gravity behavior
iOS 7 in Action

This is an excerpt from Manning's book iOS 7 in Action.

14.3.2. Applying the gravity behavior

The gravity behavior is one of the simplest behaviors to use. The goal is to have the dynamic item, the basketball, fall with simulated gravity after it’s tapped. To do this, you’ll create two new methods, setupGravity and dropBall: in IAViewController.m. The setupGravity method is only to add a gesture recognizer to execute dropBall: when the ball is tapped. Add the following code: