您的位置:首页 > 产品设计 > UI/UE

UIScrollView UICollectionView 无法响应touch事件

2016-06-28 00:00 316 查看
创建一个 UIScrollView+UITouch.h category文件。
重写一下touch的所有需要的方法。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];
}

即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息