当我们将一个自动释放的对象赋值为nil时,内存管理会如何表现?它会立即被释放还是会在自动释放池中被释放?
例如:
例如:
NSString *myString = [NSString stringWithFormat@"%@","MY_STRING"]; //Autorelease object
myString = nil;//What will happen here ? Does it get deallocated ? Or Will it get deallocated with the autolrelease pool ?