Lets say I have local variable(not property) Obj *x = d, is d's reference count incremented? Or is it default a weak reference?
Apple's documentation (Variable Qualifiers
section) said:
https://developer.apple.com/library/ios/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html
__strong is the default. An object remains “alive” as long as there is a strong pointer to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With