ObjectiveC:Synchronized
lastmod 2018-10-12created 2018-10-121 edits
How to use
+(id)getSingletonInstance
{
@synchronized(self)
{
if (singletonObj == nil)
{
singletonObj = [[self alloc] init];
}
return singletonObj;
}
}