Differences between strong and weak in Objective-C

后端 未结 9 1414
礼貌的吻别
礼貌的吻别 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:23

    Here, Apple Documentation has explained the difference between weak and strong property using various examples :

    https://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW3

    Here, In this blog author has collected all the properties in same place. It will help to compare properties characteristics :

    http://rdcworld-iphone.blogspot.in/2012/12/variable-property-attributes-or.html

提交回复
热议问题