How to detect jitter during movie playback?

I have an iphone application where I can shake and play a random file using MPMoviePlayerController. But while the Movie Player is on the screen, it cannot detect jitter. How can I make Movie Player detect jolts during a game?

Thank you for your help!

+3
source share
1 answer

Only the first responder receives UIResponder shake notifications. Use the UIAccelerometer directly; Googling "WIAccelerometer shake" should give you some undefined working code.

+1
source

Source: https://habr.com/ru/post/1749473/


All Articles