У меня есть MPMoviePlayerController, настроенный для воспроизведения фильма. Я хочу обнаружить касание фильма для вызова нескольких кнопок. Я использовал код:
// The movie's window is the one that is active
UIWindow* moviePlayerWindow = [[UIApplication sharedApplication] keyWindow];
// Now we create an invisible control with the same size as the window
UIControl* overlay = [[[UIControl alloc] initWithFrame:moviePlayerWindow.frame]autorelease];</p>
<pre><code> // We want to get notified whenever the overlay control is touched
[overlay addTarget:self action:@selector(movieWindowTouched:) forControlEvents:UIControlEventTouchDown];
// Add the overlay to the window's subviews
[moviePlayerWindow addSubview:overlay];
но тогда контроллеры воспроизведения не появляются, я думаю, потому что окно плеера не получает касания. Как я могу сохранить контроллеры плеера и все еще обнаруживать касания?спасибо