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
- diffabledatasourcesnapshot
- SWIFT
- container
- arc in swift
- 21wwdc
- 2021wwdc
- uinib
- DiffableDataSource
- JSON
- swinject
- Di
- method dispatch
- sectionHeader
- hashable
- value sementics
- 우유혁명
- projectedvalue
- collectionView layout
- di library
- propertywrapper
- Asynchronous
- compositional layout
- IOS
- reference sementics
- itemidentifier
- assembly
- dynamic dispatch
- itemidentifiertype
- vwt
- sendable
Archives
- Today
- Total
목록label size (1)
onemoon Studio
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/lNgjM/btqDGgTdivV/aNwE1d3HunzFMIPipa3630/img.png)
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