ObjC: proper use of property and synthesize?

前端 未结 3 1596
迷失自我
迷失自我 2021-01-29 04:06

Does anyone know why this code is running into compilation errors? I\'m compiling it on Catalina using clang. I posted a similar issue here but that was when I was trying to c

3条回答
  •  半阙折子戏
    2021-01-29 04:21

    Declaring a property with name a produces a getter with name a, not getA. This is what the first warning is about: "instance method '-getA' not found"

提交回复
热议问题