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 |
Tags
- Clean Code
- tableView
- combine
- MVVM
- 애니메이션
- rxswift
- SWIFT
- uiscrollview
- Xcode
- HIG
- UITextView
- 스위프트
- Refactoring
- 리팩토링
- RxCocoa
- ribs
- 클린 코드
- Human interface guide
- collectionview
- swift documentation
- ios
- clean architecture
- uitableview
- 리펙토링
- UICollectionView
- Observable
- 리펙터링
- Protocol
- map
- swiftUI
Archives
- Today
- Total
목록arrangedSubviews (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/enGpwQ/btsd1ifUeMk/udTAvVkP53ZZkdhxIhx7b0/img.png)
UIStackView의 removeArrangedSubview 보통 UIStackView의 하위 뷰들을 제거할때 removeArrangedSubview를 통해 제거하는데, 이렇게만하면 memory leak이 발생 subviews에 접근하여 명시적으로 해당 뷰에서 removeFromSuperview()를 호출해줘야 제거가됨 ex) 메모리 릭 확인을 위해, 메모리에서 해제된경우 deinit에서 print문을 호출하는 뷰 정의 class MyView: UIView { init() { super.init(frame: .zero) backgroundColor = .yellow NSLayoutConstraint.activate([ heightAnchor.constraint(equalToConstant: 200), ..
iOS 응용 (swift)
2023. 5. 11. 01:15