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

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.

主站蜘蛛池模板: 巢湖市| 海南省| 襄樊市| 建水县| 象州县| 瑞金市| 淮安市| 锦州市| 津南区| 阆中市| 衡东县| 白沙| 万宁市| 宜兰县| 安多县| 梁山县| 锦屏县| 翁牛特旗| 赤水市| 磴口县| 嘉祥县| 化州市| 泽普县| 治多县| 乐清市| 凤阳县| 泗阳县| 石首市| 宜宾市| 榆社县| 宝山区| 高邮市| 虹口区| 育儿| 乌海市| 木兰县| 定襄县| 楚雄市| 湘潭县| 建平县| 托克逊县|