티스토리 뷰
728x90
반응형
내용
- UITextField placehodler color 변경
결과
textField.attributedPlaceholder = NSAttributedString(string: "명함이름", attributes: [NSAttributedString.Key.foregroundColor: UIColor.system6])
다음과 같이 textField 가 어두운 경우 placeholder 의 색을 밝게 변경할 수 있다.
![](https://user-images.githubusercontent.com/69136340/135084193-378330af-4f19-4677-80ce-5c4832e03922.png)
728x90
반응형
'iOS' 카테고리의 다른 글
iOS) HTTP 메시지 구조를 통해 GET, POST 이해하기 (0) | 2021.10.04 |
---|---|
iOS) 클립보드(UIPasteboard)에 복사하기 (0) | 2021.09.29 |
iOS) URLSession 에 대해서 알아보자(2/2) - 실전 (0) | 2021.09.18 |
iOS) HTTP Multipart/form-data 이해하기 (0) | 2021.09.18 |
iOS) URLSession 에 대해서 알아보자(1/2) - 원리 (0) | 2021.09.15 |
댓글
TAG
- 서버통신
- async/await
- WidgetKit
- SwiftUI
- MOYA
- Widget
- projectsetting
- APNS
- github
- WWDC22
- rxswift
- Objective-C
- UserDefaults
- Algorithm
- Notification
- Firebase
- configurable widget
- containerBackground
- watchOS
- MVVM
- IOS
- 2022 KAKAO TECH INTERNSHIP
- Swift
- WWDC
- YPImagePicker
- CloneCoding
- OpenSourceLibrary
- Protocol
- RxCocoa
- urlsession
최근에 올라온 글
최근에 달린 댓글
글 보관함
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
링크
- Total
- Today
- Yesterday