๋ชฉ๋กReference Cycles (1)

Focus On Develop ๐ŸคŸ๐ŸคŸ

[Swift] strong, weak, unowned

๋จผ์ € ARC์˜ ๊ฐœ๋…์— ๋Œ€ํ•ด์„œ ์งš๊ณ  ๋„˜์–ด์™€์•ผ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๋ฉ”๋ชจ๋ฆฌ ๋ˆ„์ˆ˜์— ๋Œ€ํ•œ ์ด์•ผ๊ธฐ๊ฐ€ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ๐Ÿ‘ ๐Ÿ‘‰ 2021/01/29 - [iOS [Swift]] - [Swift] ARC (Automatic Reference Counting) ์ž ๊น ์š”์•ฝํ•˜๋ฉด ARC๋Š” Swift์—์„œ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์ž๋™์œผ๋กœ ๊ด€๋ฆฌํ•ด์ค€๋‹ค๋Š” ๊ฐœ๋…์ธ๋ฐ, ๋ฉ”๋ชจ๋ฆฌ ๊ด€๋ฆฌ๋ฅผ ์ž๋™์œผ๋กœ ํ•ด์ฃผ์ง€๋งŒ ๋ฉ”๋ชจ๋ฆฌ ๋ˆ„์ˆ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํฌ์ธํŠธ๊ฐ€ ์žˆ์—ˆ์ฃ . ๊ทธ ๋ฉ”๋ชจ๋ฆฌ ๋ˆ„์ˆ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํฌ์ธํŠธ๋Š” ์–ธ์ œ์ด๋ฉฐ, ์–ด๋–ป๊ฒŒ ๋ฐฉ์ง€๋ฅผ ํ•ด์•ผ ํ• ์ง€์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋ ค ํ•ฉ๋‹ˆ๋‹ค. ** ์—ฌ๊ธฐ์„œ๋ถ€ํ„ฐ๋Š” Swift ๊ณต์‹ Document๋ฅผ ์ฐธ๊ณ ํ•ด์„œ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค ** [Swift Docs] docs.swift.org/swift-book/LanguageGuide/AutomaticReferenceCounting.htm..