ios - How to create a singleton class in swift? -
this question has answer here:
- using dispatch_once singleton model in swift 27 answers
i need create singleton class in swift. can me code? know singleton classes helpful in creating generic code.
class singleton { static let sharedinstance = singleton() }
Comments
Post a Comment