刚刚开始学习 看一些Demo
-
(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];if ([_tempText isFirstResponder] && [touch view] != _tempText) {
[_tempText resignFirstResponder];
}[super touchesBegan:touches withEvent:event];
}
代码如上
请问 [super touchesBegan:touches withEvent:event];这句话有什么作用啊。 好像加不加都没什么变化