UITableViewCell部分区域点击问题
来源:互联网 发布:剑三dbm数据导入失败 编辑:程序博客网 时间:2024/06/06 05:52
- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event { UITouch* touch = [[event allTouches] anyObject]; CGPoint leftLocation = [touch locationInView: self.contentView]; CGPoint tapLoccation = [touch locationInView: self.tapView]; if ([self.contentView pointInside:leftLocation withEvent:event]) { if ([self.tapView pointInside:tapLoccation withEvent:event]) { self.touchLeft =NO; [super touchesBegan:touches withEvent:event]; } else { self.touchLeft = YES; [super touchesBegan:touches withEvent:event]; } } else { self.touchLeft = NO; [super touchesBegan:touches withEvent:event]; }}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { VCCollectionCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; if (cell.touchLeft) { [tableView deselectRowAtIndexPath:indexPath animated:YES]; } else { [tableView deselectRowAtIndexPath:indexPath animated:NO]; [self tableView:self.tableView accessoryButtonTappedForRowWithIndexPath:indexPath]; }}
阅读全文
0 0
- UITableViewCell部分区域点击问题
- UITableViewCell点击事件无法响应问题
- 点击UITableViewcell 弹出AlertController 出现延迟问题
- Android listview中item部分区域添加点击事件
- IOS应用开发09——为自定义UITableViewCell的部分区域添加手势
- 关于BoundingBox区域的点击检测问题:
- UINavigationBar点击区域超出、覆盖的问题
- iOS开发Tap点击的区域问题。
- DrawerLayout 空白区域点击穿透问题
- Canvas重绘部分区域问题
- 关于自定义UITableViewCell布局点击Cell消失的问题
- 解决 UITableViewCell的点击事件和手势的冲突问题
- 点击popupwindow外部区域,点击事件的响应问题
- UITableViewCell去掉点击效果
- Swift UITableViewCell点击展开
- UITableViewCell 消除右侧区域空白
- javascript点击空白位置关闭弹出层/点击包含指定区域但不属于指定区域的部分响应点击事件
- 关于点击popupwindow以外区域 popupwindow自动消失问题
- app 设计思路
- 解决eclipse切换JDK
- 6.21 java初级开发面经4~7K
- w32tm同步时间
- Java| enum枚举(2)
- UITableViewCell部分区域点击问题
- 自定义获取WI-FI列表及相关设置
- bootstrap-datetimepicker
- 用jsp展示数据库的商品:
- 按照补码定义求补码
- git版本控制工具常用指令以及github
- Kingdom Division ——hackerrank
- 时间序列
- GitHub:创建和修改远程仓库