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

Summary

In this chapter, we explored the origins of ARC, the performant memory management paradigm available in Swift. With great power comes great responsibility, so you're still required to design your memory model with ARC in mind; failing to do so will lead to memory leaks or crashes caused by dangling pointers. By now, you should be comfortable with the advantages and drawbacks of both weak and unowned references. You should also understand why weak or unowned don't apply to value types. Last but not least, you should now be comfortable with setting your project up to efficiently debug memory with the tools from Xcode.

ARC sits at the compiler level, injected into your code as it is built. In the next chapter, we'll continue to refresh the basics and stretch our muscles, as we explore Foundation and the standard library.

主站蜘蛛池模板: 三河市| 永仁县| 行唐县| 聂荣县| 仙游县| 广河县| 宁乡县| 玉门市| 和林格尔县| 眉山市| 嘉义市| 临城县| 婺源县| 陕西省| 中卫市| 平顺县| 陈巴尔虎旗| 延津县| 石嘴山市| 临沧市| 高唐县| 大荔县| 堆龙德庆县| 华亭县| 沧州市| 南皮县| 顺昌县| 汕尾市| 新干县| 杭锦后旗| 五指山市| 上杭县| 乐山市| 汾西县| 广东省| 陈巴尔虎旗| 改则县| 九江县| 沙湾县| 龙江县| 蒲江县|