lundi 28 septembre 2015

SingleTon Objective C foolproof

How to make sure the singleton class never creates more than instance even though if we call

[[Class alloc]init] 

Even if its called it should return the existing object not a new object.

Aucun commentaire:

Enregistrer un commentaire