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

Chapter 1. Introduction to Objective-C Memory Management

In this chapter, we will concern ourselves principally with the core issues of the memory management problem as well as an Objective-C-based solution of it. We will look at the ownership and life cycle of the object. This basic idea is known as manual references counting, or Manual Retain Release (MRR), where you need to claim and relinquish ownership of every object. It defines an object's life cycle. And finally, we'll take a look deeper into NSObject for a better understanding of what's going on.

We will cover the following topics in this chapter:

  • Why do we need memory management in Objective-C?
  • An object's ownership and life cycle
  • The principles of reference counting
  • What's a memory leak and why pay attention to it?
主站蜘蛛池模板: 隆化县| 枞阳县| 霍林郭勒市| 江永县| 榆树市| 绩溪县| 承德县| 施甸县| 高要市| 仙居县| 闽清县| 唐海县| 岳池县| 忻州市| 武威市| 墨竹工卡县| 仙桃市| 乌鲁木齐市| 石柱| 五指山市| 诸城市| 峨边| 鹰潭市| 冷水江市| 鹤庆县| 玉溪市| 镇雄县| 保亭| 体育| 南通市| 准格尔旗| 文安县| 祥云县| 五家渠市| 建平县| 靖安县| 昭平县| 古田县| 始兴县| 宁陕县| 陕西省|