- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
//如果两次点击的时间间隔小于1秒,则断定为双击事件
NSUInteger curr = [[NSDate date] timeIntervalSince1970];
if (curr-taptime<1) {
[self doubleTap];
}
taptime = curr;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
//如果两次点击的时间间隔小于1秒,则断定为双击事件
NSUInteger curr = [[NSDate date] timeIntervalSince1970];
if (curr-taptime<1) {
[self doubleTap];
}
taptime = curr;
}