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
- RxCocoa
- collectionview
- HIG
- UICollectionView
- SWIFT
- rxswift
- swiftUI
- Clean Code
- ribs
- 리팩토링
- 애니메이션
- 리펙터링
- 스위프트
- combine
- 클린 코드
- UITextView
- tableView
- 리펙토링
- Xcode
- ios
- uitableview
- swift documentation
- clean architecture
- Refactoring
- Protocol
- Observable
- map
- uiscrollview
- MVVM
- Human interface guide
Archives
- Today
- Total
목록line (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] UILabel 라인 간 간격 (spacing, 간격, NSMutableAttributedString, )
기본 개념 NSMutableAttributedString 텍스트 + 속성값을 가지고 있는 인스턴스 속성값: 텍스트 색상, 폰트, 하이퍼링크 등 NSMutableParagraphStyle 텍스트에 속성을 주입할 수 있는 인스턴스 UILabel에 간격 부여 방법 extension UILabel { func setLineSpacing(spacing: CGFloat) { } } text를 생성자로 주입하여 NSMutableAttributedString 인스턴스를 생성 guard let text = text else { return } let attributeString = NSMutableAttributedString(string: text) NSMutableParagraphStyle 인스턴스에 속성을 추가하고..
iOS 응용 (swift)
2021. 10. 23. 03:18