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
- UITextView
- RxCocoa
- 리펙토링
- UICollectionView
- Human interface guide
- ribs
- SWIFT
- 스위프트
- map
- clean architecture
- 리펙터링
- 클린 코드
- tableView
- 리팩토링
- uiscrollview
- HIG
- Protocol
- Xcode
- rxswift
- ios
- MVVM
- combine
- Refactoring
- swiftUI
- Observable
- 애니메이션
- collectionview
- swift documentation
- uitableview
- Clean Code
Archives
- Today
- Total
목록width (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 내부 크기에 따라 동적으로 width 길이가 증가하는 뷰
상황 내부 크기가 동적으로 증가하는 경우 (label.text와 같은 경우), superView의 width를 동적으로 증가하여 내부 레이아웃을 유지할 수 있는 방법 값에 따라 크기가 동적으로 늘어나는 - 예시) UILabel let temporaryLabel = UILabel() temporaryLabel.font = UIFont.systemFont(ofSize: 12) temporaryLabel.text = "sampleDataString" print(temporaryLabel.intrinsicContentSize) // (101.0, 14.5) temporaryLabel.text = "sampleDataLongString ---- long ----" print(temporaryLabel.intrin..
iOS 응용 (swift)
2021. 2. 19. 23:43