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

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
主站蜘蛛池模板: 兴和县| 曲阳县| 宣汉县| 革吉县| 新乐市| 乐东| 喀什市| 华亭县| 沙湾县| 泸溪县| 莱阳市| 宿松县| 化德县| 麟游县| 万源市| 无锡市| 海林市| 平湖市| 鞍山市| 安远县| 顺昌县| 连州市| 涡阳县| 玉田县| 城口县| 博野县| 云浮市| 喀喇沁旗| 香格里拉县| 襄垣县| 西安市| 潜江市| 凤山市| 宿松县| 确山县| 图木舒克市| 成安县| 包头市| 高青县| 宁都县| 长宁区|