본문 바로가기

study record

검색하기
study record
프로필사진 asong

  • 분류 전체보기 (184)
    • 기타 (3)
    • 알고리즘 (33)
      • 스위프트 알고리즘 (3)
    • 안드로이드 (35)
      • android developers 정복하기 (2)
    • 자바 (3)
    • 일기 (0)
    • iOS (42)
      • iOS 정리 (20)
      • RxSwift (10)
      • iOS_Document (10)
      • WWDC (2)
    • Swift (3)
      • Concurrency (7)
      • 스위프트 프로그래밍 (35)
      • 스위프트 정리 (19)
      • Combine (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
  • 안드로이드
  • 옵셔널
  • 스위프트
  • 연산자
  • 알고리즘
  • 클로저
  • 해시
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록자간 (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바