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 | 31 |
Tags
- rxswift
- 리펙터링
- 애니메이션
- Observable
- Human interface guide
- UICollectionView
- MVVM
- Protocol
- uiscrollview
- Refactoring
- 리펙토링
- Clean Code
- 리팩토링
- SWIFT
- map
- HIG
- 스위프트
- swift documentation
- collectionview
- uitableview
- swiftUI
- Xcode
- tableView
- combine
- UITextView
- clean architecture
- RxCocoa
- 클린 코드
- ribs
- ios
Archives
- Today
- Total
목록User Defined Runtime Attributes (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