swift单例

2021-03-25  本文已影响0人  __Gavin__

示例:

class SZIAccount {
    var accountModel: SZIAccountModel! = SZIAccountModel()
    
    static let shared = SZIAccount()
    
    private init() {}
}
上一篇 下一篇

猜你喜欢

热点阅读