I am using iPhone sdk's motionended method to g开发者_如何学JAVAet 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
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.
精彩评论