解决方法: 导入#import xxxx.h即可 程序需要了解整个类。所以需要添加 #import xxxx.h 转载于:https://www.cnblogs.com/OIMM/p/9391955.html