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 | 31 |
Tags
- UITextView
- combine
- 리펙토링
- RxCocoa
- Clean Code
- uiscrollview
- Human interface guide
- MVVM
- SWIFT
- map
- tableView
- Observable
- 리팩토링
- rxswift
- clean architecture
- UICollectionView
- ios
- 애니메이션
- ribs
- Protocol
- Xcode
- Refactoring
- HIG
- swiftUI
- 스위프트
- 클린 코드
- 리펙터링
- collectionview
- swift documentation
- uitableview
Archives
- Today
- Total
목록2024/05/08 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 2. 클로저를 사용할 때 주의할 점 - nested closure 두 번째
1. 클로저를 사용할 때 주의할 점 - Memory Leaks, Retain Cycle, nested closure 첫 번째2. 클로저를 사용할 때 주의할 점 - nested closure 두 번째nested closure에서의 memory leak첫 번째 글에서 알아보았듯이, nest closure가 있을 때 외부 클로저가 아닌 내부 클로저에서 [weak self]를 잡게되면 메모리 릭이 발생// retain cycleclass Jake3 { let name = "Jake3" var closure: (() -> ())? var closure2: (() -> ())? init() { let outerClosure = { let internalC..
iOS 응용 (swift)
2024. 5. 8. 01:16