Why don't properties get automatically synthesized

前端 未结 5 964
一向
一向 2021-01-06 07:32

maybe this is a silly question. Every time I make a @property I have to @synthesize it. But this makes no sense the only thing you can do with a

5条回答
  •  借酒劲吻你
    2021-01-06 08:24

    @synthesize is not the only option; there is also @dynamic, which means you will implement the methods yourself. [Redacted; see bbum's answer for more detail.]

提交回复
热议问题