Cannot find protocol declaration in Xcode

前端 未结 5 505
没有蜡笔的小新
没有蜡笔的小新 2021-01-01 13:08

I\'ve experienced something today while I\'m building my app. I\'ve declared a protocol in my MyObject1 and add delegate property on it. I\'ve assign MyObject2 as a Delegat

5条回答
  •  一个人的身影
    2021-01-01 13:44

    The error must be in import loop.

    I had import "AppDelegate.h" in both the classes.I removed it from the class which declared protocol and the error was gone. :)

提交回复
热议问题