override func touchBegan(_ touches: Set<UITouch>, with event: UIEvent?)
유저가 화면을 터치하면 호출되는 메서드
활용)
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
self.view.endEditing(true)
}
빈 화면을 누르면 키보드나 데이트픽커가 사라진다. 에디팅 모드가 끝난다.