Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你得到的错误是因为 #import cycle 。当两个头文件相互导入时会发生这种情况。您可以使用@class 声明类,然后在实现文件中导入头文件。