본문 바로가기

onemoon Studio

검색하기
onemoon Studio
프로필사진 onemoon

  • 분류 전체보기 (18)
    • iOS & Swift (16)
    • CICD (0)
    • Share Experience (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • assembly
  • hashable
  • 21wwdc
  • 우유혁명
  • sectionHeader
  • itemidentifiertype
  • uinib
  • sendable
  • Asynchronous
  • compositional layout
  • IOS
  • arc in swift
  • 2021wwdc
  • projectedvalue
  • reference sementics
  • SWIFT
  • swinject
  • container
  • propertywrapper
  • collectionView layout
  • dynamic dispatch
  • itemidentifier
  • diffabledatasourcesnapshot
  • di library
  • value sementics
  • Di
  • vwt
  • JSON
  • method dispatch
  • DiffableDataSource
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록nsstring size (1)

onemoon Studio

Text Size 구하기

Text Size 구하기 Label 과 TextView TextField 등을 통한 UI를 작업할 때 보통은 오토레이아웃으로 처리를 하지만, 가끔은 텍스트를 통해서 직접 사이즈를 구해 작업을 해야 할 때가 있다. 구글링을 해보면 boundingRect(with:options:attributes:context:)와 size(withAttributes:) 이 두가지 메서드를 자주 사용하는 것을 확인할 수 있었고, 두 메서드를 제대로 확인하고 비교하고자 해당 포스트를 작성하게 되었다. # NSString.boundingRect(with:options:attributes:context:) Calculates and returns the bounding rect for the receiver drawn using..

iOS & Swift 2020. 4. 26. 16:40
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.