Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Async
- Clean Architecture
- 회고록
- 순환참조
- MVVM
- 광주소프트웨어마이스터고등학교
- GOMS
- breakpoint
- UISheetPresentationController
- regex
- DI
- 정규식
- keychain
- pop
- RenderingMode
- UIImage
- 회고
- Swift
- weak
- ReactorKit
- unowned
- xcode
- ios
- UIKit
- Protocol
- Sync
Archives
- Today
- Total
목록unowned (1)
minaje
전 포스팅에서 메모리 누수, 순환참조에 대해서 공부를 해봤으니 이번 포스팅은 메모리 누수를 방지하는 방법을 알아보자! Weak Weak를 사용하여 강한 참조가 아닌 약한 참조를 만들어 메모리 누수를 방지할 수 있다! class TestClass{ weak var testClass: TestClass? = nil // 약한 참조 init(){ print("init") } deinit(){ print("deinit") } } var testClass1: TestClass? = TestClass() var testClass2: TestClass? = TestClass() testClass1?.testClass = testClass2 testClass2?.testClass = testClass1 testClas..
iOS/기초 지식
2023. 10. 17. 14:15