Resign First Responder on ScrollView Touch
问题 How can I hide the keyboard on ScrollView touch event... Scenario is like that... ->View ->ScrollView ->Textfield I want to hide the keyboard on touch of scrollView. I tried to override the class for scrollview but still i can't do it. 回答1: Doing like this will help: @interface MyClass <UIScrollViewDelegate> { } @implementation - (void)viewDidLoad { yourScrollView.delegate = self; } - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { [myTextField resignFirstResponder]; } If you