【发布时间】:2014-07-16 12:00:54
【问题描述】:
您好,我想在 UIWebView 的电影播放器上添加一些自定义控件,例如从该 webview 加载的 UIButton。是否有任何可能的方式来访问 uiwebview 的电影播放器或用普通的 MPMoviePlayerController 覆盖它。
更新
好的,您可以按如下方式访问它首先添加通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(VideoEnterFullScreen:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:nil];
然后
-(void)VideoEnterFullScreen:(NSNotification*)notification
{
id moviePlayer = notification.object;
NSLog(@"");
}
但问题是我无法访问该对象的任何属性,即 UIMoviePlayerController
【问题讨论】:
标签: ios html uiwebview mpmovieplayercontroller uiwebviewdelegate