Property xx cannot be found in forward class object "XXXX"

1、描述如下: 在一个model中导入了另一个model,但是在.m文件中报错  Property xx cannot be found in forward class object "XXXX"  最后发现在.h文件中使用class来导入此model,导致在实现文件.m中不能找到此model的实体变量 2、回顾import和class区别 在头文件中, 一般只需要知道被引用的类的名称就可以了。
相关文章
相关标签/搜索