摘要:
// 单例+ (id)sharedInstance{ __strong static id sharedObject = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ sharedObject = [[self alloc] init]; }); return sharedObject;}dispatch_onceExecutes a block object once and only once for the lifetime of an appli... 阅读全文