ios - How to create a singleton class in swift? -


this question has answer here:

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

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -