본문 바로가기 메뉴 바로가기

seokLog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

seokLog

검색하기 폼
  • 분류 전체보기 (13)
    • iOS (1)
    • Swift (1)
    • UIKit (2)
    • SwiftUI (1)
    • Widget (8)
  • 방명록

uikit (1)
iOS UIKit - UILabel 앞에 이미지 넣기

NSTextAttachment 속성을 이용해서 UILabel 앞에 이미지 붙이기 import UIKit class ViewController: UIViewController { @IBOutlet weak var testLabel: UILabel! override func viewDidLoad() { super.viewDidLoad() // 테스트할 텍스트 생성 let text = "텍스트 앞에 이미지 넣기" // NSAttributedString 으로 변경 let NStext = NSAttributedString(string: text) // attributeString 생성 let attributedString = NSMutableAttributedString(string: "") // UIImage ..

UIKit 2023. 3. 5. 19:00
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • userdefaults
  • extension
  • vstack
  • SWiFT
  • hstack
  • uikit
  • ios
  • 위젯
  • lineBreakMode
  • Widget
  • appGroup
  • uilabel
  • propertyWrapper
  • 아이폰
  • siwftUI
more
«   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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바