摘要: // 单例+ (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... 阅读全文
posted @ 2014-03-18 10:41 willbin 阅读(242) 评论(0) 推荐(0) 编辑