iPhone开发--警告Receiver 'ClassName' is a forward class and corresponding @interface may not exist
2012-03-15 12:21
519 查看
今天上午重构代码的时候出现了如下的警告:
查看代码,也并无错误啊,编译结果也正常,思考无果,只好求救网络,在stackoverflow上找到了答案:
原因可能是你在.h文件中包含@classs yourclass.h,但是你并未在yourclass.m文件中包含#import "yourclass.h"
英文为:Maybe
you have
呵呵,原因竟是我没包含头文件,呵呵,真是大意。编译器太“智能”了,直接编译成功,运行正常,但是提示的警告令人费解,有时我真希望编译器能准确提示错误在哪,而不是自动给我纠错,让我错的稀里糊涂。
摘录自:http://stackoverflow.com/questions/620661/receiver-classname-is-a-forward-class-and-corresponding-interface-may-not-exi
Receiver
'ClassName' is a forward class and corresponding @interface may not exist
查看代码,也并无错误啊,编译结果也正常,思考无果,只好求救网络,在stackoverflow上找到了答案:原因可能是你在.h文件中包含@classs yourclass.h,但是你并未在yourclass.m文件中包含#import "yourclass.h"
英文为:Maybe
you have
@class UIPickerTablein your .h file and you did not have
#import UIPickerTable.hon your {RootViewController}.m file
呵呵,原因竟是我没包含头文件,呵呵,真是大意。编译器太“智能”了,直接编译成功,运行正常,但是提示的警告令人费解,有时我真希望编译器能准确提示错误在哪,而不是自动给我纠错,让我错的稀里糊涂。
摘录自:http://stackoverflow.com/questions/620661/receiver-classname-is-a-forward-class-and-corresponding-interface-may-not-exi
相关文章推荐
- Iphone开发中的两个小bug,1.调用camera时的内存警告导致view自动upload,2,Not enough frames in stack.
- A class file was not written. The project may be inconsistent, if so try refreshing this project and
- interface may not exist
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- iPhone 开发中 Duplicate interface definition for class'*'怎么处理那?
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- iPhone 开发中 Duplicate interface definition for class’*'怎么处理那?
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it
- Android Studio Package rename and error “Activity class does not exist”
- selenium webDriver: Element is not currently visible and so may not be interacted with
- CentOS编译安装Apache 2.4.x时报错:configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
- Eclipse配置Struts2问题:ClassNotFoundException: org...dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- to create table if table do not exist -- to backup and restore table in oracle
- Eclipse配置Struts2问题:ClassNotFoundException: org...dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- Intellij Idea 报错cannot find symbol, class R或者package R does not exist
- Error type 3: Activity Class {...} dose not exist【解决方案】
- iOS 开发中 “Duplicate interface definition for class”问题
- 学习日志-abstract class and interface
- Compiler Error Message: CS0234: The type or namespace name 'BorderDetails' does not exist in the class or namespace 'Infragistics.WebUI.Shared' (are you missing an assembly reference?)
- vue-cli创建的项目中引入第三方库报错 'caller', 'calle', and 'arguments' properties may not be...