摘要:
dealloc中[_x release]、[_x releae],_x=nil和,self.x = nil区别1、[_x release],_x = nil和self.x = nil等价 self.x = nil; OC中属性的设置器 设置器内部实现是这样的- (void)setX:(id)theX{ if (_x!=theX) { [_x release]; _x = [theX retain]; }} 所以self.x = nil,相当于[_x = relase],_x = [nil retain];2、[_x release]和[_x release],_x = nil区别 x 在rel 阅读全文