IB drag-and-drop controls are automatically declared as weak, while their own handwriting is strong
In iOS, objects are strongly referenced by default, and are not immediately released after a strong reference assignment
IB statement Weak not immediately released simply say
1. A weak reference to a declaration points to a strong reference
2, added to the view
@property (nonatomic, weak) UILabel * Lab; -(void) viewdidload{ * label = [UILabel alloc] init .... = label; [Self.view Addsubview:_lab];}
Release order controller----> View---> Subviews---> Label (first release without strong reference)
The handwritten code is declared as strong equivalent to having two strong references pointing to
Release order controller---->_lab
--->view---> subviews---> Label two strong references were destroyed.
Why iOS dragged controls for weak handwritten strong