swift单例
2021-03-25 本文已影响0人
__Gavin__
示例:
class SZIAccount {
var accountModel: SZIAccountModel! = SZIAccountModel()
static let shared = SZIAccount()
private init() {}
}
示例:
class SZIAccount {
var accountModel: SZIAccountModel! = SZIAccountModel()
static let shared = SZIAccount()
private init() {}
}