Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 iphone 应用程序,我可以在其中使用 MPMoviePlayerController 摇动和播放随机文件。但是当电影播放器在屏幕上时,它无法检测到抖动。如何让电影播放器在播放时检测抖动?
谢谢你的帮助!
只有“第一响应者”会收到 UIResponder 震动通知。直接使用 UIAccelerometer;谷歌搜索“UIAccelerometer 抖动”应该会给你一些模糊的工作代码。