3 ms·
You can do stuff: @autoreleasepool { RaiObj* obj = [RaiObj new]; [obj autorelease]; //... stuff } will de-allocate at the end of the block if
by richardwhiuk 6y ago
You can do stuff:
@autoreleasepool {
RaiObj* obj = [RaiObj new];
[obj autorelease];
//... stuff
}
will de-allocate at the end of the block if nothing else hold onto it, but it's obviously less neat.