摘要: 1 static DemoObj *instance; 2 3 /** 4 1. 重写allocWithZone,用dispatch_once实例化一个静态变量 5 2. 写一个+sharedXXX方便其他类调用 6 */ 7 8 // 在iOS中,所有对象的内存空间的分配,最终都会调用... 阅读全文
posted @ 2015-03-10 01:23 Liberal.C 阅读(127) 评论(0) 推荐(0) 编辑