What's the correct method to subclass a singleton class in Objective -C? -
I have created a single square and I want to create a square which is the subclass of this singleton class, what is the correct method To do I do not particularly know about Objective-C, but in general singleton sections Preventing subclassing If you have found an example of an example of a base class and subclass, then you can effectively There are two objects, you can provide the value of the base "singleton" class, did you not? As soon as you get two examples, it is not really a singleton ... and separates the possibilities that there are many sub-classes, or many examples are made in the sub-class . Of course you can change your base class, so it's just a way to get to a "default" example, but it's not the same as making a singleton.