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

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?
主站蜘蛛池模板: 泸定县| 延寿县| 绥中县| 和田市| 武夷山市| 邮箱| 汕头市| 西城区| 来安县| 安顺市| 玛纳斯县| 公安县| 陇川县| 乌恰县| 阿坝| 民权县| 新宁县| 沙坪坝区| 清水河县| 阳春市| 嫩江县| 洛宁县| 黄冈市| 禹州市| 南京市| 芜湖市| 磴口县| 育儿| 印江| 钟祥市| 灵璧县| 阜宁县| 肥东县| 调兵山市| 盐池县| 金寨县| 阿拉尔市| 屏山县| 灵川县| 法库县| 上思县|