自己遇到的問題, 當我把cell的selectionStyle設置為 UITableViewCellSelectionStyleNone的時候,點擊發生響應延遲的bug。不明所以然,以前貌似沒碰到這個情況。
解決辦法:cell的selectionStyle用UITableViewCellSelectionStyleDefault,會有點擊背景顏色的,如果你在
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
背景色會一閃而過的,如果你想要UITableViewCellSelectionStyleNone的效果,那就去改變cell的selectedBackgroundView。如下:
UIView *view= [[UIView alloc] initWithFrame:cell.frame];
view.backgroundColor=[UIColor clearColor];
cell.selectedBackgroundView=view;
這樣就沒什么問題了。