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

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.

主站蜘蛛池模板: 许昌市| 灌云县| 灵武市| 玛曲县| 迁西县| 浙江省| 满城县| 周宁县| 商城县| 双辽市| 米泉市| 桓台县| 望江县| 宜都市| 淅川县| 大余县| 金山区| 拉萨市| 许昌县| 新和县| 板桥市| 乐亭县| 安福县| 清原| 始兴县| 平顺县| 岳池县| 抚顺市| 文山县| 兴山县| 潼南县| 太仆寺旗| 连山| 西青区| 汪清县| 巫山县| 固阳县| 莲花县| 泰安市| 封丘县| 高雄县|