unknown type name in objective c

前端 未结 6 1592
生来不讨喜
生来不讨喜 2021-01-03 22:55

I\'m pretty new to objective c, and having some basic problems.

I wrote a simple program using a navigator, and everything worked fine. then I added few lines of cod

6条回答
  •  伪装坚强ぢ
    2021-01-03 23:37

    I figured out, that the same error appears if you have an import-cycle:

    Class_A.h: #import "Class_B.h"

    Class_B.h: #import "Class_A.h"

    To fix: look for any imports of the offending class (the error tab is your friend, expand the relevant error for a list of imports). Remove #import's accordingly

提交回复
热议问题