这个现象在高亮状态时最为明显 连续触碰button 高亮状态会不显示。 处理方案是关掉scrollView的延迟
代码:
在创建tableView的地方加下面这行
_tableView.delaysContentTouches =NO;
for (UIView *currentView in cell.subviews)
{
if([currentViewisKindOfClass:[UIScrollViewclass]])
{
((UIScrollView *)currentView).delaysContentTouches = false;
break;
}
}
for (UIView *currentView in _tableView.subviews)
{
if([currentViewisKindOfClass:[UIScrollViewclass]])
{
((UIScrollView *)currentView).delaysContentTouches = false;
break;
}
}