일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Multitasking #life Cycle
- async #await #swift Concurrency #concurrency #actor #concurreny 원리 #concurreny 개념
- Multiple Window #iPad
- Apple # HIG #iOS15 #iOS14 #Human #Interface #Guidelines #Apple developer # Apple human interface guidelines
- Hugging priority
- ARC #unowned #weak #weak unowned차이 #순환참조 #Strong Reference Cycle #Swift #메모리 #memoryLeak
- UIKit기본
- Struct #Value Type #Value #Reference #Reference Type #Class #Structure #memory
- deinitialize #스위프트 #Swift #ARC #메모리 #memory #closure #클로저 #클로저 메모리 #weak #weak self #self #unowned self #memoryleak #메모리릭
- #IntrinsicContentSize
- swift concurrency #swift #concurrency #async #async let #swift parallel #병렬실행 #동시실행 #이미지 동시 다운로드 #iOS #UIKit
- notification #
- 거의최단경로 #5719번반례 # 백준반례 #백준플4 #플레4
- ARC #weak #unowned #Strong Reference #Strong Reference Cycle #순환참조 #Swift #메모리 #memoryLeak #메모리릭
- Swift #UIkit #ARC #Reference count #memory leak #memory #leak #애플 #iOS
- 알고리즘
- Swift Concurrency #동시성 프로그래밍 #async #await #async let #group Task #병렬 실행 #동시 다운로드
- UI그리기
- AR #Augmented Reality
- COW #Copy On Write #Swift #Optimization
- 백준#5719번#
- Autolayout #
- ARC #Swift #Memory leak #weak self #unowned self #weak self 이유 #reference count #순환 참조 #retain cycle #delayed #deinitialization #지연 해제 #delayed deinitialization
- Compression resistance
- IntrinsicContentSize #UIKit #Swift #hugging priority #conflict resistance #Ambiguous
- Swift#flatMap#map#Monad#함수형 프로그래밍#Optional
- Multitasking #
- Autolayout 충돌
- OS #Page #Page Table #Virtual Memory
- Swift #try #catch #Swift Concurrency 에러처리 #에러처리 #Error #Error Handling
Archives
- Today
- Total
목록ARC #weak #unowned #Strong Reference #Strong Reference Cycle #순환참조 #Swift #메모리 #memoryLeak #메모리릭 (1)
도니의 iOS 프로그래밍 세상
[Swift] Strong Reference Cycle - ARC 기초 2탄
안녕하세요, 지난 포스팅에선 ARC의 정의, ARC의 작동원리에 대해서 공부했습니다. 이번 포스팅에선 ARC의 Counting 방식으로 인해 생기는 Strong Referecne Cycle에 대해서 공부하곘습니다. Memory Leak 지난 포스팅에선, 객체에 대한 count가 0이 됐다면, 더이상 메모리에서 사용하지 않는다고 판단하고 자동으로 ARC를 통해 클래스 "객체"를 메모리로부터 Free 시킨다. 라고 하였습니다. 즉 누구도 해당 instance에 접근하지 못한다고 판단하면 메모리에서 deallocate 시키는 것입니다. 하지만, 누구도 instance에 접근하지 못하고, 사용하지 않음에도 메모리에서 deallocate가 이뤄지지 않으면 어떻게 될까요? Memory Leak이 발생할것입니다. S..
Swift
2023. 1. 8. 16:05