Creating a singleton with allocWithZone:

后端 未结 2 1081
星月不相逢
星月不相逢 2020-12-31 23:49

BNRItemStore is a singleton, and I was confused on why super allocWithZone: must be called instead of plain old super alloc. And then

2条回答
  •  青春惊慌失措
    2021-01-01 00:25

    From Apple's documentation:

    This method exists for historical reasons; memory zones are no longer used by Objective-C.

提交回复
热议问题