Returns a new instance of the receiving class.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
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 initialization code. Instead, implement class-specific versions of
For historical reasons,