Please note, this blog entry is from a previous course. You might want to check out the current one.
Use a UIDynamicAnimator to allow the cards in either game to be gathered up into a pile via a pinch gesture. Once gathered, the stack of gathered cards must be able to be moved around (via a pan gesture). Tapping on the stack will return the cards to their normal positions (animated, of course) unharmed.
Start by adding a pan and a pinch to the grid views of both game view controllers in storyboard and link them to actions in the generic game-view-controller class.
Add a new property to the game-view-controller class, which will store the current animations:
@property (strong, nonatomic) UIDynamicAnimator *pileAnimator;
Continue reading “cs193p – Assignment #4 Task #10”