摘要:
1.UILongPressGestureRecognizer2.在touchBegan里面[self performSelector:@selector(longPressMethod:) withObject:nil afterDelay:longPressTime]然后在 end 或cancel里做判断,如果时间不够长按的时间调用 [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(longPressMethod:) object:nil]取消began里的方法 阅读全文