HUISOO's iOS Develop

  • 홈
  • 방명록

replace three dot 1

[Swift] UILabel 생략 부호(... 또는 Ellipsis) 바꾸기

이 포스트는 UILabel에서 text의 길이가 numberOfLines 값을 넘었을때 나오는 생략부호(... 또는 Ellipsis 또는 three dot)을 바꾸기 위한 포스팅입니다 :) 실제로 바꾸는 것은 아니고 그렇게 보이도록 하는 방법입니다. 최종 수정일 - 22. 09. 1 PM 3:20 방법 1. replaceEllipsis(with string: String) 함수를 생성 extention UILabel { func replaceEllipsis(with string: String) { guard let text = self.text else { return } lineBreakMode = .byClipping // STEP 0: Ellipsis가 필요 없는 경우 return if numb..

iOS/Swift 2022.09.01
이전
1
다음
더보기
프로필사진

앱 개발 공부를 위한 블로그입니다.

  • 분류 전체보기 (19)
    • iOS (13)
      • Swift (10)
      • RxSwift (0)
      • 라이브러리 (2)
    • AOS (0)
      • Java (0)
    • Server (0)
      • PHP (0)
    • 소식 (0)
    • 개인 프로젝트 (6)

Tag

로아툴, three dot, Carousel, auto slide banner, 로스트아크, CollectionView, banner, replace three dot, 배너, Slide, Swift, replace ellipsis, A Spinning Wheel, 숙제, swiftyJSON, http networking, 생략 부호, 알라모파이어, ios, dismiss keyboard,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바