草庐IT

mainControlsView

全部标签

ios - 如何将 KVO 添加到 MPMoviePlayerController 以便我可以检测控件何时可见

我希望能够使用MPMoviePlayerController的标准控件使我的自定义控件出现和消失。什么是最好的方法?谢谢,罗布 最佳答案 我相信我找到了解决方案。如果其他人需要此功能,请按以下方式使用:我使用了我找到的代码here在MPMoviePlayerView数组中找到MPInlineVideoOverlaysubview。然后我修改如下:-(void)observeValueForKeyPath:(NSString*)keyPathofObject:(id)objectchange:(NSDictionary*)change