iosdevnyc
iosdevnyc

Reputation: 1871

Shake method iphone sdk

I am using iPhone sdk's motionended method to get the shake effect on 3.0.

The problem I am having is that the it works find on the first shake which I play a view, but once the video finished and I shake the device again it doesn't work.

Can anyone help me with this.

Thanks

Upvotes: 0

Views: 499

Answers (1)

Brad Larson
Brad Larson

Reputation: 170309

Something else, like the video player, may have become the first responder after the first time you shake the device. This could be preventing the shake events from getting to your view or controller. You may need to manually restore the first responder status to the element handling the shake by sending it -becomeFirstResponder once the video has finished.

Upvotes: 1

Related Questions