When is @property and @synthesize needed?

后端 未结 4 583
时光取名叫无心
时光取名叫无心 2021-01-03 16:38

When exactly do I have to add @property (nonatomic, retain) and @synthesize? Also, when is declaring IBOutlet someObject enough? How i

4条回答
  •  难免孤独
    2021-01-03 17:35

    Its not needed if you dont want the variables or objects to be accessed outside the class by other objects.

提交回复
热议问题