일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 백준#5719번#
- ARC #weak #unowned #Strong Reference #Strong Reference Cycle #순환참조 #Swift #메모리 #memoryLeak #메모리릭
- AR #Augmented Reality
- 거의최단경로 #5719번반례 # 백준반례 #백준플4 #플레4
- IntrinsicContentSize #UIKit #Swift #hugging priority #conflict resistance #Ambiguous
- Swift#flatMap#map#Monad#함수형 프로그래밍#Optional
- Multitasking #
- Autolayout #
- COW #Copy On Write #Swift #Optimization
- swift concurrency #swift #concurrency #async #async let #swift parallel #병렬실행 #동시실행 #이미지 동시 다운로드 #iOS #UIKit
- Autolayout 충돌
- 알고리즘
- Compression resistance
- UIKit기본
- #IntrinsicContentSize
- Multiple Window #iPad
- Struct #Value Type #Value #Reference #Reference Type #Class #Structure #memory
- Apple # HIG #iOS15 #iOS14 #Human #Interface #Guidelines #Apple developer # Apple human interface guidelines
- Swift #UIkit #ARC #Reference count #memory leak #memory #leak #애플 #iOS
- Hugging priority
- OS #Page #Page Table #Virtual Memory
- UI그리기
- Swift Concurrency #동시성 프로그래밍 #async #await #async let #group Task #병렬 실행 #동시 다운로드
- notification #
- async #await #swift Concurrency #concurrency #actor #concurreny 원리 #concurreny 개념
- Multitasking #life Cycle
- ARC #unowned #weak #weak unowned차이 #순환참조 #Strong Reference Cycle #Swift #메모리 #memoryLeak
- deinitialize #스위프트 #Swift #ARC #메모리 #memory #closure #클로저 #클로저 메모리 #weak #weak self #self #unowned self #memoryleak #메모리릭
- ARC #Swift #Memory leak #weak self #unowned self #weak self 이유 #reference count #순환 참조 #retain cycle #delayed #deinitialization #지연 해제 #delayed deinitialization
- Swift #try #catch #Swift Concurrency 에러처리 #에러처리 #Error #Error Handling
Archives
- Today
- Total
목록Swift #UIkit #ARC #Reference count #memory leak #memory #leak #애플 #iOS (1)
도니의 iOS 프로그래밍 세상
[Swift] ARC의 정의 및 이해 - ARC의 기초 - 1탄
1. ARC가 무엇인가? Swift에서는, 사용자 앱의 메모리 사용을 추적하고 관리할 때 Automatic Reference Counting (ARC)라는 것을 사용한다. 대부분 메모리 사용을 사용자가 직접 관리해야 하는 C와 다르게, 더이상 메모리에서 사용하지 않는다고 판단했을 때 자동으로 ARC를 통해 클래스 "객체"를 메모리로부터 Free 시킨다. 2. ARC의 판단기준 특정 객체가 더이상 사용되지 않는 다는 것을 ARC는 어떻게 판단할까? ARC는 특정 클래스 객체를 참조하는 변수, 상수, 프로퍼티들의 갯수를 카운팅한다. 특정 객체에 "적어도" 하나라도 참조변수가 존재한다면 ARC에서는 메모리 해제를 발생하지 않는다. 반대로, 활성화된 참조변수가 존재하지 않는다면 ARC는 특정 객체를 메모리로부터..
Swift
2022. 12. 31. 20:17