[iOS, Swift] UILabel 여러 줄 표현하기
[iOS, Swift] UILabel 여러 줄 표현하기
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. label.numberOfLines = 0 numberOfLines를 0으로 설정하면 Label의 텍스트가 여러 줄로 표현이 된다. numberOfLines = 0의 의미는 Label이 필요한..
bksesame.tistory.com
[iOS, Swift] UILabel Font 설정
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. label.font = UIFont.systemFont(ofSize: 16, weight: .bold) iOS의 한글 기본 서체는 Apple 산돌고딕 Neo이고, iOS의 영문 기본 서체는 Helvetica..
bksesame.tistory.com
[iOS, Swift] UILabel TextColor 설정 (NSAttributedString)
[iOS, Swift] UILabel TextColor 설정 (NSAttributedString)
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. label.textColor = UIColor.red // OR label.textColor = UIColor(red: 64/255, green: 88/255, blue: 41/255, alpha: 1) label.textColor 속성에..
bksesame.tistory.com
[iOS, Swift] UILabel 그림자 효과 넣기
[iOS, Swift] UILabel 그림자 효과 넣기
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. label.layer.shadowOffset = CGSize(width: 3, height: 3) label.layer.shadowOpacity = 0.7 label.layer.shadowRadius = 2
bksesame.tistory.com
[iOS, Swift] UILabel Highlight 효과주기
[iOS, Swift] UILabel Highlight 효과주기
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. label.isHighlighted = true label.highlightedTextColor = UIColor.red
bksesame.tistory.com
[iOS, Swift] UILabel 텍스트 양쪽 정렬(Justify Text)
[iOS, Swift] UILabel 텍스트 양쪽 정렬(Justify Text)
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. let loremText = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard..
bksesame.tistory.com
[iOS, Swift] UILabel 밑줄긋기(Underline)
[iOS, Swift] UILabel 밑줄긋기(Underline)
iOS 15.5, Xcode 13.31, Swift 5, UIKit 환경에서 진행했습니다. let attributedString = NSMutableAttributedString.init(string: "Apply UnderLining") attributedString.addAttribute(NSAttributedString.Key.u..
bksesame.tistory.com
'iOS > iOS' 카테고리의 다른 글
[iOS, Swift] UIGesture 기능 모음 (0) | 2022.08.25 |
---|---|
[iOS, Swift] UIView 기능 모음 (0) | 2022.08.21 |
[iOS, Swift] UIImageView 기능 모음 (0) | 2022.08.21 |
[iOS, Swift] LocalNotification 기능 모음 (0) | 2022.08.21 |
[iOS, Swift] 초기 프로젝트 세팅 (MVC, UIKit) (0) | 2022.06.02 |