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