正文设计模式(五): 简单而又不失其重要性的单例模式(Singleton Pattern)IP云V管理员/2022-09-15/1 阅读 09/15小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 上篇博客我们系统的介绍了三种工厂模式,今天我们就来介绍一下单例模式。单例模式虽然简单,但是还是比较重要的,是常用设计模式之一。在之前的博客《Objective-C中的单例模式》中介绍了Objective-C中MRC和ARC下的单例模式。单例模式应该说是设计模式中最为简单的了,但是简单并不代表其不重要,在程序开发中单例模式的出镜率还是比较高的。举个栗子