-(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