2
通知をMPMoviePlayerViewControllerに設定するにはどうすればよいですか?それはMPMoviePlayerControllerと同じですか?MPMoviePlayerViewController通知
を表示する例下さい
通知をMPMoviePlayerViewControllerに設定するにはどうすればよいですか?それはMPMoviePlayerControllerと同じですか?MPMoviePlayerViewController通知
を表示する例下さい
MPMoviePlayer ビューコントローラはMPMoviePlayerControllerにあなたのコントロールを与えるだけのラッパーです。
MPMoviePlayerViewController
には、自分で操作する必要があるすべての通知を送信する独自のMPMoviePlayerController
があります。次のように通知を聴く
が行われます。
// Register for the playback finished notification
[[NSNotificationCenter defaultCenter] addObserver:self // the object listening/"observing" to the notification
selector:@selector(myMovieFinishedCallback:) // method to call when the notification was pushed
name:MPMoviePlayerPlaybackDidFinishNotification // notification the observer should listen to
object:self.moviePlayerViewController.moviePlayer]; // the object that is passed to the method
あなたは、そので動作する必要がありますすることができ、より多くの通知はしたがって、基本的に、はいMPMoviePlayerController Class Reference
に記載されていますがあります - あなたが使用することができますMPMoviePlayerController
と同じ通知