Returns a new instance of the receiving class.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Objective-C Runtime
A new instance of the receiver.
This is an instance variable of the new instance that is initialized to a data structure describing the class; memory for all other instance variables is set to
You must use an
init... method to complete the initialization process. For example:
Do not override
alloc to include initialization code. Instead, implement class-specific versions of
For historical reasons,