반응형
📄 Dismissing the keyboard in a UIScrollView Swift Source Code
scrollView.keyboardDismissMode = .interactive
OR
scrollView.keyboardDismissMode = .onDrag
OR
scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive;
OR
scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;
📄 Dismissing the keyboard in a UIScrollView Delegate Swift Source Code
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
self.view.endEditing(true)
}
🚀 REFERENCE
반응형
댓글