Setting IBOutlet to nil
Quick question, are these the same?
self.s开发者_高级运维liderLabel = nil;
AND
[self setSliderLabel: nil];
gary
They are exactly the same.
In fact, at compile time self.sliderLabel = nil;
becomes [self setSliderLabel: nil];
.
精彩评论