[8/16] The UITextFieldDelegate Protocol
7개의 method들이 언제 쓰이는지 forum을 찾아보자!
1. textField의 LifeCycle에 영향
* textFieldShouldBeginEditing(_:) (이 메서드는 주로 field에 Edit을 막거나 허락할 때 사용)
* textFieldDidBeginEditing(_:)
* textFieldShouldEndEditing(_:)
* textFieldDidEndEditing(_:)
2. 제일 많이씀. 텍스트 필드에 변화가 생겼을 때 알아챔
* textField(_:shouldChangeCharactersIn:replacementString:)
3. x를 누르면 clear하게 할 때
* textFieldShouldClear(_:)
4. return 키를 누르면 textField를 떠나게 하는
* textFieldShouldReturn(_:)