如何屏蔽父view的touch事件到,并且响应self的touch
来源:互联网 发布:加密空间破解软件下载 编辑:程序博客网 时间:2024/04/19 16:36
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path,NULL,0,0);
CGRect rect = CGRectMake(0, 100, 320, 40);
CGPathAddRect(path, NULL, rect);
if(CGPathContainsPoint(path, NULL, point, NO))
{
[self.superview touchesBegan:nil withEvent:nil];
}
CGPathRelease(path);
return self;
}
- 如何屏蔽父view的touch事件到,并且响应self的touch
- View的touch事件
- 多层View如何响应touch事件
- touch事件的响应过程
- 禁用view的touch事件
- View的touch事件分发。
- 如何扩大一个view的touch和click响应区域
- 子View不响应touch事件,让父View响应touch事件
- cocos2d-x 屏蔽场景的Touch事件
- 如何让UIScrollView里面的UIImageView响应touch事件
- hit-test的用法总结:如何阻止touch事件传递到子view
- [iphone][cocos2D]layer 屏蔽底层layer对touch事件的响应
- UIScrollView无法响应touch事件的解决办法
- UIScrollView无法响应touch事件的解决办法
- UILabel ,RTLabel,响应touch事件的方法
- 事件的响应(UIResponder)、touch、UIGestureRecognizer
- Android Touch事件的分发响应机制
- UIScrollView不能响应touch事件的解决办法
- Windows下编译 ImageMagick 的php API
- 实现一键删除 windows mobile phone 通话记录
- Java求两个数的最大公约数
- IT是如何
- 通信
- 如何屏蔽父view的touch事件到,并且响应self的touch
- JAVA RPG星星小镇0.7 demo 演示版
- getopt在Python中的使用
- 《新标准日本语初级》词汇精解:第一课
- 网页特效锦集
- 在mac和xp中共享盘中文件的操作
- iOS4 一些基本尺寸
- 启动类(weblogic)
- BREW设备系统架构