在Linked Frameworks and Libraries中导入MediaPlayer.framework后,还得在要调用其类的.m文件的头文件.h中用以下语句导入 #import <MediaPlayer/MediaPlayer.h>