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 architecture
- Observable
- uiscrollview
- rxswift
- ribs
- ios
- Human interface guide
- uitableview
- SWIFT
- UICollectionView
- Xcode
- MVVM
- swift documentation
- Refactoring
- tableView
- Protocol
- HIG
- 리펙토링
- combine
- 리펙터링
- Clean Code
- map
- 클린 코드
- collectionview
- 리팩토링
- UITextView
- 스위프트
- swiftUI
- RxCocoa
- 애니메이션
Archives
- Today
- Total
목록systemLayoutSizeFitting (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bGU2ld/btsts6rA9Cj/g6941Ekn1t8jauPdYkqxKK/img.png)
systemLayoutSizeFitting 개념 오토 레이아웃 안에서, 현재 systemLayoutSizeFitting을 호출하는 뷰의 내부 크기를 계산한 결과를 반환해주는 함수 AutoLayout은 보통 동적으로 크기가 정해지고 나서 layoutSubivews()와 같은 델리게이트 메소드에서 frame.size를 알 수 있지만 systemLayoutSizeFitting을 사용하면 autoLayout 기반으로 잡힌 구조에서 크기를 바로 구할 수 있음 파라미터에는 보통 2가지의 상수값을 사용 UIView.layoutFittingCompressedSize UIView.layoutFittingExpandedSize 크기 옵션 layoutFittingCompressedSize 레이아웃 시스템에게 뷰의 내용을 가..
iOS 응용 (swift)
2023. 9. 10. 00:35