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

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?
主站蜘蛛池模板: 高淳县| 苗栗县| 临沧市| 洞头县| 吴川市| 蒙山县| 彭泽县| 拜城县| 金阳县| 中牟县| 漳州市| 丰都县| 宣城市| 都安| 修文县| 龙海市| 平果县| 巴彦淖尔市| 灯塔市| 隆子县| 舟山市| 灵武市| 行唐县| 滕州市| 灵寿县| 闽清县| 惠来县| 延安市| 湖南省| 依安县| 汶川县| 西城区| 调兵山市| 荆州市| 屏山县| 吴江市| 贵溪市| 新竹市| 浑源县| 长治市| 南溪县|