誰かが同様の問題に遭遇し、もちろん、適切な、またはそれほど適切ではない(しかし機能している)解決策/回避策を見つけたのではないかと思います。
MPMoviePlayerViewControllerを使用していて、スワイプジェスチャ認識機能をMPMoviePlayerViewControllersビューに追加しようとしています。
moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:currentChannel.StreamURI]];
[moviePlayerViewController.moviePlayer setControlStyle:MPMovieControlStyleNone];
moviePlayerViewController.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
moviePlayerViewController.moviePlayer.shouldAutoplay = YES;
[moviePlayerViewController.moviePlayer setScalingMode:MPMovieScalingModeAspectFit];UISwipeGestureRecognizer * swipeGestureRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(previousChannel)];
swipeGestureRight.direction = UISwipeGestureRecognizerDirectionRight;
[myMoviePlayerViewController.view addGestureRecognizer:swipeGestureRight];
[self.view addSubview:moviePlayerViewController.view];
とにかく、それは「一種の動作」ですが、実行中のムービープレーヤーインスタンス(シミュレーターまたはデバイスの両方)でジェスチャーを実行して全体をテストすると、アプリがクラッシュし、コンソールの状態が表示されます
** -[CFRunLoopTimer invalidate]: message sent to deallocated instance 0xf074bb0
そのトピックについて何か考えを持っている人はいますか?