“Expected a type” error pointing to the return type of a method

前端 未结 8 1692
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 06:02

I\'ve attempted to compile, but every time I do, one method throws a strange \"expected a type\" error. I have a method in the header:

-(ANObject *)generateS         


        
8条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 06:35

    You basically add

    @class ANObject;
    

    before @interface!

提交回复
热议问题