我有一个UITableViewController并希望检测触摸。UITableViewController和检测触摸
基本上,我希望用户能够按住触摸3秒,当他们放开时,我想弹出一个小的视图,有几个选项的表。
我已经试过这...
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
self.lastTouch = [event timestamp];
NSLog(@"TLC.touchesBegan:touchBeginEndInterval %f", self.lastTouch);
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
NSTimeInterval touchBeginEndInterval = [event timestamp] - self.lastTouch
NSLog(@"TLC.touchesEnded:touchBeginEndInterval %f %f", self.lastTouch, touchBeginEndInterval);
}
而且这还不是捡我倒是在所有...
任何想法要实现这一目标的最佳方式是什么?
你解决这个问题?如果是这样,让我知道解决方案。即使我面临同样的问题 – Dee 2012-07-17 18:34:34