摘要: 关于NSString的各种初始化与之的retainCountint main(int argc, const char * argv[]){ @autoreleasepool { NSString *s1 = @"Constant string"; NSLog(@"%lx", [s1 retainCount]); // ffffffffffffffff NSString *s2 = [NSString stringWithString:@"string 2"]; NSLog(@"%lx", [s2 r... 阅读全文
posted @ 2012-12-01 01:22 And.He 阅读(565) 评论(0) 推荐(0) 编辑