본문 바로가기

onemoon Studio

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

  • 분류 전체보기 (18)
    • iOS & Swift (16)
    • CICD (0)
    • Share Experience (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   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
Tags
  • itemidentifiertype
  • projectedvalue
  • reference sementics
  • uinib
  • IOS
  • SWIFT
  • swinject
  • di library
  • container
  • vwt
  • diffabledatasourcesnapshot
  • collectionView layout
  • JSON
  • 21wwdc
  • dynamic dispatch
  • value sementics
  • arc in swift
  • propertywrapper
  • assembly
  • 2021wwdc
  • sectionHeader
  • itemidentifier
  • 우유혁명
  • Di
  • DiffableDataSource
  • method dispatch
  • hashable
  • Asynchronous
  • sendable
  • compositional layout
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

티스토리툴바