How do weak and strong references look like in objective-c?
问题 Wikipedia states "In computer programming, a weak reference is a reference that does not protect the referenced object from collection by a garbage collector". How do those two types of references look like in code? Does a weak reference is a reference made by an autoreleased message? 回答1: The following answer is for the case when there is no garbage collection (such as on iOS). In the case of garbage collection, there is actually a keyword ( __weak ) to create a weak reference. A "weak"