------Java Training, Android training, iOS training,. NET training, look forward to communicating with you! -------Arc's judgment: The object will be released as long as there is no strong pointer to the object ARC features: 1 does not allow calls to release,release,retaincount2> allow rewrite dealloc, but does not allow calls to "super Dealloc "3> @property parameter * Strong: member variable when strong pointer (for OC object type) * Weak: member variable is if pointer, (for OC Object) * Assign: For non OC object Type 4" previous retain changed to St Rong Pointer 2 kinds: 1 strong pointer: By default, all pointers are strong pointers __strong2 if the pointer: __weak if the weak pointer points to the object, then the object will be freed and then destroyed if the pointer is empty, for example: __weak person * p = [person Alloc] init];//error notation (meaningless, creation is destroyed) when the two ends of the circular reference: Arc:1 End With Strong, the other 1 end with weak non-arc:1 end with retain, the other 1 end with assign @property (Nonautomic, strong) Dog * dog;//(Arc controlled) previous retain were replaced by strong
Dark Horse programmer--arc