Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- uitableview
- Protocol
- collectionview
- 리펙터링
- swift documentation
- Human interface guide
- Observable
- SWIFT
- uiscrollview
- clean architecture
- Xcode
- tableView
- 스위프트
- HIG
- ios
- Clean Code
- UITextView
- map
- ribs
- UICollectionView
- combine
- swiftUI
- 리펙토링
- 클린 코드
- 리팩토링
- RxCocoa
- rxswift
- 애니메이션
- MVVM
- Refactoring
Archives
- Today
- Total
목록placeholderLabel.textColor (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] textField의 placeholder색깔 변경 방법
Code로 접근 방법 attributedPlaceholder 속성 사용 extension UITextField { func setPlaceholder(color: UIColor) { guard let string = self.placeholder else { return } attributedPlaceholder = NSAttributedString(string: string, attributes: [.foregroundColor: color]) } } 색깔 변경 textField.setPlaceholder(color: .blue) xib에서 접근 방법 User Defined Runtime Attributes에서 속성 추가: placeholderLabel.textColor 결과
iOS 응용 (swift)
2021. 3. 9. 22:42