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

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
主站蜘蛛池模板: 锦屏县| 凤冈县| 车致| 女性| 黎城县| 玉环县| 蓬溪县| 涿鹿县| 丰县| 漳州市| 林甸县| 北票市| 天气| 财经| 芒康县| 盐池县| 平凉市| 格尔木市| 石河子市| 普格县| 麻江县| 岳阳市| 临朐县| 凉城县| 黄大仙区| 丁青县| 普陀区| 锦州市| 萨嘎县| 盐山县| 南安市| 云林县| 同心县| 凌海市| 当涂县| 华蓥市| 伊金霍洛旗| 高雄市| 呼和浩特市| 北流市| 昭苏县|