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
- uinib
- vwt
- di library
- itemidentifier
- 우유혁명
- Asynchronous
- JSON
- itemidentifiertype
- sendable
- compositional layout
- assembly
- 21wwdc
- SWIFT
- value sementics
- Di
- sectionHeader
- 2021wwdc
- projectedvalue
- swinject
- diffabledatasourcesnapshot
- method dispatch
- reference sementics
- arc in swift
- hashable
- container
- collectionView layout
- DiffableDataSource
- propertywrapper
- dynamic dispatch
- IOS
Archives
- Today
- Total
목록label size (1)
onemoon Studio

Text Size 구하기 Label 과 TextView TextField 등을 통한 UI를 작업할 때 보통은 오토레이아웃으로 처리를 하지만, 가끔은 텍스트를 통해서 직접 사이즈를 구해 작업을 해야 할 때가 있다. 구글링을 해보면 boundingRect(with:options:attributes:context:)와 size(withAttributes:) 이 두가지 메서드를 자주 사용하는 것을 확인할 수 있었고, 두 메서드를 제대로 확인하고 비교하고자 해당 포스트를 작성하게 되었다. # NSString.boundingRect(with:options:attributes:context:) Calculates and returns the bounding rect for the receiver drawn using..
iOS & Swift
2020. 4. 26. 16:40