Contents

autorelease

Decrements the receiver’s retain count at the end of the current autorelease pool block.

Declaration

- (instancetype) autorelease;

Return Value

self.

Discussion

For more information about autorelease pool blocks, see Advanced Memory Management Programming Guide.

Special Considerations

Instead of using manual reference counting, you should adopt ARC—see Transitioning to ARC Release Notes.

See Also

Obsolete Methods