开发者

Shake method iphone sdk

开发者 https://www.devze.com 2022-12-09 05:46 出处:网络
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 vid

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消