Need explanation on @property/@synthesize in iOS

前端 未结 2 1016
悲哀的现实
悲哀的现实 2021-01-31 16:24

Not a complete noob I am quite new to iOS programming and to Ojbective-C. I mainly come from a background of C (DSP, Microcontrollers), Delphi XE2/Pascal , Visual Basic and Java

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 17:07

    This is a language feature that has had its usage evolve rapidly over the past few years, which explains the various forms. With the most recent tools, you can choose to ignore @synthesize and have things work reasonably.

    The default behavior in that case produces the same effect as @synthesize list = _list;.

提交回复
热议问题