官术网_书友最值得收藏!

Chapter 2. Automatic Reference Counting

Good ideas live a long life and bad ones die fast. In Objective-C, reference counting's long life was seen as a very good idea. The next step of evolution in this is that it became automatic, so we call it Automatic Reference Counting (ARC), which was introduced by Apple Inc. in 2011 for application development on its desktop and mobile OS, Mac OS X Lion, and iOS 5. It changed the name of the initial referencing counting to Manual Reference Counting.

We will cover the following topics in this chapter:

  • ARC and how it works
  • Advantages and disadvantages of ARC
  • Project settings for ARC
  • Mixing code that doesn't support ARC with your project
  • Memory model in Objective C
  • ARC in UI kit
主站蜘蛛池模板: 巩留县| 栖霞市| 安仁县| 峨眉山市| 鹰潭市| 类乌齐县| 樟树市| 县级市| 诏安县| 云和县| 山阴县| 兴安县| 凉城县| 北海市| 肃宁县| 潮安县| 宜良县| 昔阳县| 和顺县| 无棣县| 大名县| 宜阳县| 西青区| 永定县| 台山市| 和平县| 连平县| 昆明市| 遵化市| 肥乡县| 孟连| 桓仁| 南部县| 吴川市| 郯城县| 沂源县| 宁德市| 涞水县| 五家渠市| 和政县| 大同市|