在我正在处理的当前项目中,在其中一个视图上,我有一个UIView
和在它之上,它UIScrollView
是从界面构建器构建的。
我已经实现了以下UIResponder
实例方法:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
但是只有当触摸事件发生在未被覆盖的区域时,控件才会使用此方法UIScrollView
。
我怎样才能获得触摸事件UIScrollView
呢?