摘要: 1. 关于dispatch_oncedispatch_onceExecutes a block object once and only once for the lifetime of an application.在stackoverflow上有个对dispatch_once的解释,非常棒:What's the exact reason for using dispatch_once in the shared instance accessor of a singleton under ARC?+(MyClass*)sharedInstance{// Static local p 阅读全文