can not find interface declaration
2013-01-22 23:47
323 查看
can not find interface of declaration for ‘A’,superclass of ‘B’”
B中明明import了A.h,而且通过command键+鼠标左键,也可以从B中找到A的接口声明。你尝试了各种方法,就是找不到问题出在哪里。而且C同样是A的子类,C和B除了类名外,代码没有任何不同。难道Cocoa限制了一个类的子类数量?一个子类可以继承,第2个就不行?
不用大惊失色。问题在于A中import了B.h,而B又引用了A,这就构成了交叉引用
不过编译器却给出了一个让人混淆不清的提示“找不到父类接口”。
一般头文件就放到.m 文件中
B中明明import了A.h,而且通过command键+鼠标左键,也可以从B中找到A的接口声明。你尝试了各种方法,就是找不到问题出在哪里。而且C同样是A的子类,C和B除了类名外,代码没有任何不同。难道Cocoa限制了一个类的子类数量?一个子类可以继承,第2个就不行?
不用大惊失色。问题在于A中import了B.h,而B又引用了A,这就构成了交叉引用
不过编译器却给出了一个让人混淆不清的提示“找不到父类接口”。
一般头文件就放到.m 文件中
相关文章推荐
- 关于一个交叉引用Bug:“can not find interface declaration”
- 关于一个交叉引用Bug:“can not find interface declaration”
- (文件下载)Can not find a java.io.InputStream with the name [inputStream] in the invocation stack
- make -f dc_debug.mak 提示错误"/usr/bin/ld:can not find -l***"解决办法
- struts2文件的下载,Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the tag specified
- JQuery中xxx is not a function或者can not find $
- 报错:java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [download
- 解决:"Can not find the tag library descriptor for "http://java.sun.com/jsp/jst1/core""问题
- maven 2 Can not find parent:.....
- Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”等
- a label can only be part of a statement and a declaration is not a statement
- Can not find the tag library descriptor for "http://www.springframework.org/tags"
- Can not find the tag library descriptor for "http://www.springframework.org/security/tags"
- import caffe时出错:can not find module skimage.io
- 遇到问题----struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- Eclipse下编译出现错误:can not find the main class,Program will exit 问题解决
- Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
- can not find difinition of a class
- Gradle: error: can not find symbol
- Can not find a java.io.InputStream with the name [...] in the invocation stack. ...