摘要:
// .h文件#define HMSingletonH(name) + (instancetype)shared##name;// .m文件#if __has_feature(objc_arc) #define HMSingletonM(name) \ static id _instac... 阅读全文
摘要:
// .h文件#define HMSingletonH(name) + (instancetype)shared##name;// .m文件#define HMSingletonM(name) \static id _instance; \ \+ (id)allocWithZone:(struct ... 阅读全文
摘要:
// .h文件#define HMSingletonH(name) + (instancetype)shared##name;// .m文件#define HMSingletonM(name) \static id _instance; \ \+ (id)allocWithZone:(struct ... 阅读全文