728x90
반응형
TextField 입력값 형식 제어
Capitalization
첫 글자 자동으로 대문자 처리하는 기능
tf.autocapitalizationType = UITextAutocapitalizationType.sentences
Correction
이어질 문자열 추천 및 자동 변환
tf.autocorrectionType = UITextAutocorrectionType.yes
Spell Checking
tf.spellCheckingType = UITextSpellCheckingType.no
Keyboard Type
tf.keyboardType = .numberPad
Appearance
키보드 색상 및 테마
tf.keyboradAppearance = UIKeyboardAppearence.dark
Return Key
tf.returnKeyType = .go
Auto-enable Return Key
tf.enablesReturnKeyAutomatically = true
Secure Text Entry
입력값 blind
tf.isSecureTextEntry = true
입력이 끝나고 실행되는 Action
func textFieldDidEndEditing(_ textField: UITextField) {
//text field editing이 끝났을 경우
}
728x90
반응형
'IOS&Mac' 카테고리의 다른 글
[swift] Navigation 정리 (0) | 2023.03.03 |
---|---|
[swift] AppDelegate 정리 (0) | 2023.03.03 |
[swift] Table View 다루기 (0) | 2023.02.27 |
[Swift] Image Picker (0) | 2021.04.25 |
[Swift] Launch Screen 로딩화면 만들기 (2) | 2020.06.21 |
댓글