Differences between strong and weak in Objective-C

后端 未结 9 1258
礼貌的吻别
礼貌的吻别 2020-11-22 08:09

I\'m new to Obj-C, so my first question is:

What are the differences between strong and weak in @property declarations of poin

9条回答
  •  花落未央
    2020-11-22 08:31

    A dummy answer :-

    I think explanation is given in above answer, so i am just gonna tell you where to use STRONG and where to use WEAK :

    Use of Weak :- 1. Delegates 2. Outlets 3. Subviews 4. Controls, etc.

    Use of Strong :- Remaining everywhere which is not included in WEAK.

提交回复
热议问题