Returns a new instance of the receiving class.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Objective-C Runtime
This parameter is ignored.
A new instance of the receiver.
isa instance variable of the new instance is initialized to a data structure that describes 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 any initialization code. Instead, class-specific versions of
This method exists for historical reasons; memory zones are no longer used by Objective-C.