oc试题-下面代码输出的是什么
NSString * aString = [[NSString alloc] initWithString:@"123"]; [aString autorelease]; NSMutableArray * arr = [NSMutableArray array]; [arr addObject:aString]; NSLog(@"string = %lu",[aString retainCount])
NSString * aString = [[NSString alloc] initWithString:@"123"]; [aString autorelease]; NSMutableArray * arr = [NSMutableArray array]; [arr addObject:aString]; NSLog(@"string = %lu",[aString retainCount])
网友评论0