【发布时间】:2012-08-16 11:43:39
【问题描述】:
当不在ARC下时,对于下面的代码,
.h
@property (nonatomic, retain) NSString *s;
.m
NSString *m = [NSString stringWithString:@"Hellow, World"];
s = [m retain];
// later on
s = nil; <-- will this release the ref count on the string and hence get the string released?
【问题讨论】:
标签: ios memory-management memory-leaks nsstring