receiver type *** for instance message is a forward declaration

后端 未结 9 999
心在旅途
心在旅途 2021-01-30 01:19

In my iOS5 app, I have NSObject States class, and trying to init it:

states = [states init];

here is init

9条回答
  •  醉梦人生
    2021-01-30 01:49

    I was trying to use @class "Myclass.h".

    When I changed it to #import "Myclass.h", it worked fine.

提交回复
热议问题