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
- 풀이
- RxSwift
- weak
- 생명주기
- 자바
- 프래그먼트
- Swift
- 구조체
- observable
- rx
- 프로그래머스
- ios
- async
- 이스케이핑
- 백준
- 차이
- View
- 리스트뷰
- Self
- Subject
- noncopyable
- 프로퍼티
- concurrency
- 안드로이드
- 옵셔널
- 스위프트
- 연산자
- 알고리즘
- 클로저
- 해시
Archives
- Today
- Total
목록자간 (1)
study record
[iOS] iOS TextView 행간, 자간 조절하기
// 먼저 행간 조절 스타일 설정 let style = NSMutableParagraphStyle() style.lineSpacing = 10 let attributedString = NSMutableAttributedString(string: textView.text) // 자간 조절 설정 attributedString.addAttribute(NSAttributedString.Key.kern, value: CGFloat(2.0), range: NSRange(location: 0, length: attributedString.length)) // 행간 스타일 추가 attributedString.addAttribute(NSAttributedString.Key.paragraphStyle, value: sty..
iOS/iOS 정리
2022. 3. 2. 15:42