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

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.

主站蜘蛛池模板: 沂南县| 北辰区| 澳门| 建宁县| 葫芦岛市| 开平市| 齐齐哈尔市| 山西省| 金寨县| 兴仁县| 美姑县| 舒城县| 惠东县| 正蓝旗| 岑巩县| 淳化县| 新郑市| 湖南省| 久治县| 邓州市| 兰坪| 凌源市| 通道| 昭平县| 方山县| 察哈| 衢州市| 南宫市| 尚志市| 原阳县| 西安市| 广丰县| 新绛县| 姚安县| 兰西县| 靖宇县| 凤城市| 钟山县| 建湖县| 邳州市| 若羌县|