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
- HIG
- Protocol
- uitableview
- tableView
- ribs
- 리펙터링
- UICollectionView
- 애니메이션
- UITextView
- Xcode
- 리펙토링
- map
- SWIFT
- Human interface guide
- 리팩토링
- 클린 코드
- uiscrollview
- collectionview
- Observable
- MVVM
- swiftUI
- combine
- RxCocoa
- Refactoring
- ios
- 스위프트
- rxswift
- Clean Code
- clean architecture
- swift documentation
Archives
- Today
- Total
목록참조 카운트의 이해 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] (reference count) 참조 카운트의 정확한 이해 (weak var, retain cycle, ARC)
ARC의 기본 개념 참고 참조 카운트 확인 방법 CGFGetRetainCount(object)를 사용하여 확인 // ex) print(CFGetRetainCount(obejct1)) // 2 print(CFGetRetainCount(obejct1.property1)) // 2 print(CFGetRetainCount(obejct2)) // 2 obejct1.property1 = object2 print(CFGetRetainCount(obejct1)) // 2 print(CFGetRetainCount(obejct1.property1)) // 3 print(CFGetRetainCount(obejct2)) // 3 참조 카운트가 증가하는 구체적인 상황 참초 가운트 테스트를 위한 클래스 정의 protocol A..
iOS 기본 (swift)
2021. 9. 8. 00:17