nonatomic, retain,weak,strong用法詳解

strong weak安全 strong與weak是由ARC新引入的對象變量屬性 ARC引入了新的對象的新生命週期限定,即零弱引用。若是零弱引用指向的對象被deallocated的話,零弱引用的對象會被自動設置爲nil。 @property(strong) MyClass *myObject; 至關於@property(retain) MyClass *myObject; @property(we
相關文章
相關標籤/搜索