Singleton Class sample

//.h file should contain + (MySingleton *)sharedInstance;   //.m file must declare as below + (MySingleton *)sharedInstance { static dispatch_once_t once; static MySingleton *instance; dispatch_once(&once,…