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 | 31 |
Tags
- HIG
- ribs
- SWIFT
- 애니메이션
- MVVM
- UICollectionView
- Observable
- collectionview
- map
- uitableview
- 스위프트
- Clean Code
- uiscrollview
- 클린 코드
- clean architecture
- swift documentation
- UITextView
- ios
- 리팩토링
- RxCocoa
- Human interface guide
- 리펙토링
- swiftUI
- tableView
- Refactoring
- rxswift
- Protocol
- 리펙터링
- Xcode
- combine
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