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

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
主站蜘蛛池模板: 景谷| 安国市| 偃师市| 任丘市| 紫阳县| 剑阁县| 资阳市| 建宁县| 龙泉市| 淮北市| 渭源县| 米林县| 兰溪市| 巧家县| 阳原县| 萨迦县| 潜山县| 禄丰县| 松滋市| 丹江口市| 永清县| 太和县| 新竹县| 郸城县| 罗定市| 仁布县| 灵台县| 克拉玛依市| 舟曲县| 常德市| 四川省| 浪卡子县| 台北市| 科技| 瓦房店市| 时尚| 股票| 东乡族自治县| 桦甸市| 常州市| 阜阳市|