May 2011
Beginner
834 pages
25h 19m
English
Acceleration information can arrive in three ways:
accelerometer:didAccelerate:.
A shake event is a UIEvent (Chapter 18). Receiving shake events is rather like receiving remote events (Chapter 27), involving the notion of the first responder. To receive shake events, your app must contain a UIResponder which:
canBecomeFirstResponder
This responder, or a UIResponder further up the responder chain, should implement some or all of these methods:
motionBegan:withEvent:
motionEnded:withEvent:
motionBegan:withEvent: is over and has turned out to be a shake.
motionCancelled:withEvent:
motionBegan:withEvent: ...Read now
Unlock full access