Is there anything wrong with doing something like
NSString * string = [ [ NSString alloc ] init ];
...
[ string release ];
or is there any value (other than best practice) in also adding
string = nil;
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…