Decrements the receiver’s reference count.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Objective-C Runtime
The receiver is sent a
dealloc message when its reference count reaches
You would only implement this method to define your own reference-counting scheme. Such implementations should not invoke the inherited method; that is, they should not include a release message to
For more information on the reference counting mechanism, see Advanced Memory Management Programming Guide.
Instead of using manual reference counting, you should adopt ARC—see Transitioning to ARC Release Notes.