我已经实现了通过下面的代码检测到prev/next按钮的点击,但是还没有找到区分两次点击的方法。在MPMoviePlayerController - 检测和区别上一个/下一个按钮
@implementation MyMovieController:的MPMoviePlayerController
[[NSNotificationCenter defaultCenter]
addObserver:self selector:@selector(movieChangeCallBack:)
name:MPMoviePlayerPlaybackStateDidChangeNotification object:nil];
,并定义- (空)movieChangeCallBack:(NSNotification *)aNotification
- (void)movieChangeCallBack:(NSNotification*) aNotification {
if (self.playbackState == MPMoviePlaybackStateStopped)
{
//Touched 'Previous' or 'Next' button.
}
}
有没有办法来告诉是否“上一个“或”下一个“按钮被点击? 谢谢:)
谢谢:)我会试试! – veslam