This is how I encode singletonPattern as "parent". I mainly used a combination of protocol and category.
The only thing I canβt add is the new βivarβ, however I can click it using the linked object.
Whenever I want the class to "inherit" this BGSuperSingleton, I just do:
#import "NSObject+singleton.h"
and add @interface MyNewClass () <BGSuperSingleton>
Septiadi Agus Apr 22 '13 at 10:14 2013-04-22 10:14
source share