swift单例的实现

2021-08-17  本文已影响0人  大也
   static func shareInstance() -> ADAlertControllerPriorityQueue {
       struct Static {
           // Singleton instance. Initializing keyboard manger.
           static let shareInstance: ADAlertControllerPriorityQueue = ADAlertControllerPriorityQueue()
       }
       return Static.shareInstance
   }

swift实现单例的四种方式

https://www.jianshu.com/p/230cc900948c

上一篇 下一篇

猜你喜欢

热点阅读