文章分类 -  Objective-C

摘要:原文:http://blog.csdn.net/huyuguo/article/details/7631446名词解释:Automatic Reference Counting(ARC):自动引用计数ARC在很大程度上消除了手动内存管理的负担,同时省去了追查内存泄露和过度释放对象引起的繁琐操作。尽管ARC非常吸引人,但是不会让你完全忽略内存管理。下面的告示包含了ARC一些关键方面来帮助你快速建立和运行你的项目。Reference Counted Memory: Quick RevisionHow Automatic Reference Counting WorksEnabling ARC in 阅读全文
posted @ 2012-07-24 23:51 Scan. 阅读(238) 评论(0) 推荐(0)
摘要:There's often confusion about the difference between the following three declarations in Objective-C:id foo1;NSObject *foo2;id<NSObject> foo3;The first one is the most common. It simply declares a pointer to some Objective-C object (see/usr/include/objc/objc.h).idgives the compiler no info 阅读全文
posted @ 2012-07-24 23:49 Scan. 阅读(773) 评论(0) 推荐(0)