728x90
SMALL
let titleTextView: UITextView = {
let textView = UITextView()
textView.text = "오늘 하루는 어땠나요?😀 (20자 이내)"
textView.textAlignment = .left
// 줄 수 제헌
textView.textContainer.maximumNumberOfLines = 1
...
https://developer.apple.com/documentation/appkit/nstextcontainer/maximumnumberoflines
maximumNumberOfLines | Apple Developer Documentation
The maximum number of lines that the text container can store.
developer.apple.com
728x90
LIST
'UIKIT' 카테고리의 다른 글
| 이미지를 선택한 후에 배열에 저장하고 이를 컬렉션뷰로 불러올 때 (0) | 2024.11.23 |
|---|---|
| PHPickerViewController, PHPickerConfiguration를 통해 이미지를 선택하는 방법 (0) | 2024.11.23 |
| 동일한 조건 분기를 재사용하는 방법 (1) | 2024.11.22 |
| UINavigationBarAppearance() 에 대해서 (0) | 2024.11.21 |
| layoutSubviews 반복 호출 방지 (0) | 2024.11.20 |