Ios MPMoviePlayerLoadStateDidChangeNotification需要什么头文件?

Ios MPMoviePlayerLoadStateDidChangeNotification需要什么头文件?,ios,mpmovieplayercontroller,Ios,Mpmovieplayercontroller,我不知道应该包含什么头文件 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadStateDidChange:) name:MPMoviePlayerLoadStateDidChangeNotification object:nil]; 错误:未声明的标识符MPMoviePlayerLoadStateDidChangeNotification 对不起,我找到解决办法了 #import <

我不知道应该包含什么头文件

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadStateDidChange:) name:MPMoviePlayerLoadStateDidChangeNotification object:nil];
错误:未声明的标识符MPMoviePlayerLoadStateDidChangeNotification

对不起,我找到解决办法了

#import <MediaPlayer/MediaPlayer.h>
#导入
在文档中说明
MPMoviePlayerController.h
(引号):

MPMoviePlayerLoadStateDidChangeNotification 通知观察者网络缓冲状态已更改。受影响的电影播放器存储在通知的对象参数中。没有用户信息字典。可以从电影播放器控制器的loadState属性检索当前加载状态

可用性 在iOS 3.2及更高版本中提供

声明于 MPMoviePlayerController.h

在iOS开发中心上搜索一两次,类似的东西几乎总是在那里;-)