第10月第28天 touchesBegan hittest
2024-08-24 07:11:30
1.
-(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];
} 2.hittest
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
UIView *hitView = [super hitTest:point withEvent:event];
if (hitView == self)
{
return nil;
}
else
{
return hitView;
} }
http://blog.csdn.net/reylen/article/details/45093037
最新文章
- MySQL 主从复制与读写分离概念及架构分析
- [WPF系列]基础学习(一) WPF是什么?
- 4. Prototype(原型)
- C# 字典 Dictionary 转 JSON 格式遍历
- TCMalloc 对MYSQL 性能 优化的分析
- ES pom配置
- ios app 实现热更新(无需发新版本实现app添加新功能)
- python读写操作文件
- [译]ASP.NET 性能监控
- struts2 if正确标签示例
- ajax实际的应用
- Redis系列-存储篇list主要操作函数小结
- jQuery获取和设置disabled属性、背景图片路径
- Find Minimum in Rotated Sorted Array——LeetCode
- java大数 斐波那契数列
- .net操作IIS,新建网站,新建应用程序池,设置应用程序池版本,设置网站和应用程序池的关联
- windows编程学习笔记(三)ListBox的使用方法
- 何凯文每日一句打卡||DAY6
- .AVLFile Extension
- jquery datatables api