func setup() {
view.backgroundColor = UIColor.gray
textField.placeholder = "이메일 입력"
textField.keyboardType = UIKeyboardType.emailAddress
textField.borderStyle = .roundedRect
textField.clearButtonMode = .always
textField.returnKeyType = .next
}
textField.placeholder = "이메일 입력"
textField.keyboardType = UIKeyboardType.emailAddress //텍스트 필드 키보드 스타일
textField.borderStyle = .roundedRect //텍스트 필드 선 스타일
textField.clearButtonMode = .always //클리어버튼
textField.returnKeyType = .go //엔터 텍스트 바꾸기
'🍎swift' 카테고리의 다른 글
[Swift] Stroyboard Navigation Controller를 활용한 화면이동 (1) | 2023.12.21 |
---|---|
제어 흐름 (Control Flow) (0) | 2023.11.21 |
[Swift] 연산자 커스텀 타입 (0) | 2023.04.05 |
Swift - 문자열 다루기 01 (0) | 2023.03.29 |
swift - 제네릭(Generics) (0) | 2023.03.22 |