-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { touchStartTime = [event timestamp]; }
是否有可能在UITableViewCell上有“touchesBegan”?
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
NSTimeInterval touchTimeDuration = [event timestamp] - touchStartTime;
}
touchStartTime在类级定义的。
任何想法为什么这不会识别触摸事件?
感谢您的帮助!
是否启用了多点触控? – willcodejavaforfood 2010-03-03 15:54:55
Unfortunetely所以:( – 2010-03-03 17:18:20