|
|
把它写到 单独的.h文件或 .pch文件中
如果 想把某个 类变成单例, 在.h中写single_interface(类名)
在.m中写 single_implementation(类名)
这个类就是单例了
原文链接: http://blog.csdn.net/zhz459880251/article/details/49885907
|
|
把它写到 单独的.h文件或 .pch文件中
如果 想把某个 类变成单例, 在.h中写single_interface(类名)
在.m中写 single_implementation(类名)
这个类就是单例了
原文链接: http://blog.csdn.net/zhz459880251/article/details/49885907
近期评论