[英]Bridging header not found in header file
I have this annoying error that stops me from developing some features in my app.我有这个烦人的错误,阻止我在我的应用程序中开发一些功能。 Here is the thing:
这是事情:
Now I have this file EventCell.h:现在我有了这个文件 EventCell.h:
From another file CalendarView.h:从另一个文件 CalendarView.h:
I can't get this issue !我不能得到这个问题! Please help me :)
请帮我 :)
You cannot import the bridging header into a .h file.您不能将桥接头导入 .h 文件。 You should use forward declarations if you need access to a Swift class.
如果您需要访问 Swift 类,您应该使用前向声明。
Use @class MyClassName, or @protocol MyProtocolName
使用
@class MyClassName, or @protocol MyProtocolName
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.