指向在UIViewController
與ARC最佳實踐的實例,將「釋放」任何保留主視圖的子視圖(如self.myOutlet = nil
)在- viewDidUnload
,我的猜測是self.view = nil
不嚴格在這一點上是必要的。釋放保留的財產在self.view
如果額外retain
ED屬性被定義並分配爲做什麼...
self.anotherProperty = self.view;
或
_anotherProperty = self.view; //假設「_anotherProperty」是ivar
......是self.anotherProperty = nil
需要嗎?