ios UIScrollView不能响应TouchesBegin:的事件的解决办法
来源:互联网 发布:天刀捏脸数据 帅哥 编辑:程序博客网 时间:2024/05/18 03:00
1:@property MyScrollView *scrollView;
2:给MyScrollView,增加类别:MyScrollView+Touch
3:在类别里实现下面三个方法:
@implementation MyScrollView (Touch)
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
[[self nextResponder] touchesBegan:touches withEvent:event];
[super touchesBegan:touches withEvent:event];
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
[[self nextResponder] touchesMoved:touches withEvent:event];
[super touchesMoved:touches withEvent:event];
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
[[self nextResponder] touchesEnded:touches withEvent:event];
[super touchesEnded:touches withEvent:event];
}
@end4:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self hiddenkeyBoard];
}
- ios UIScrollView不能响应TouchesBegin:的事件的解决办法
- ios UIScrollView不能响应TouchesBegin:的事件的解决办法
- ios UIScrollView不能响应TouchesBegin:的事件的解决办法
- ios UIScrollView不能响应TouchesBegin:的事件的解决办法
- UIScrollView不能响应UITouch事件的解决办法
- UIScrollView不能响应UITouch事件的解决办法
- UIScrollView不能响应UITouch事件的解决办法
- UIScrollView不能响应touch事件的解决办法
- 关于UIScrollView不能响应UITouch事件的解决办法
- 关于UIScrollview不能响应touch事件的解决办法
- 关于UIScrollView不能响应UITouch事件的解决办法
- 关于UIScrollView不能响应UITouch事件的解决办法
- 『IOS』UIScrollView无法响应touch事件的解决办法
- UIScrollView无法响应touch事件的解决办法
- UIScrollView无法响应touch事件的解决办法
- UIScrollView无法响应touch事件的解决办法
- iOS UIScrollView不能响应touchBegin的解决方法
- ios 最简单解决UIScrollView不响应TouchesBegin
- ubuntu更新源
- android 5.0及以上,seekbar thumb 透明效果出现父布局背景颜色的解决方法
- 淘宝首页性能优化实践
- 安全性测试(一)--网页安全检查
- 快速理解GCD
- ios UIScrollView不能响应TouchesBegin:的事件的解决办法
- 如何自己开发一款js或者jquery插件
- 面向对象
- 安全性测试(二)--系统服务器安全检查
- 使用 jQuery 复制文字到剪贴板的技巧
- 安全性测试(三)--数据库安全检查点
- SwaggerUI+SpringMVC-构建RestFul API的可视化界面
- Web应用安全权威指南读书思维导图
- 有了IP和MAC 为什么还需要ARP协议