我正在开发一个 iPhone 应用程序,它使用MPMoviePlayerController
. 当我切换到后台(支持多任务的设备)时,视频播放暂停,当我将我的应用程序带到前台时,视频播放恢复。
但是,当我切换到前台时,我不想恢复我的视频。我试图MPMoviePlayerController
在方法 applicationWillEnterForeground 中暂停。但是,我认为他们在调用applicationWillEnterForeground
. 是否有任何与 applicationDidEnterForeground
OR对应的通知方法applicationWillEnterBackground
?