UILongPressGestureRecognizer *longPressOnUndoGesture = [[UILongPressGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleLongPressOnUndoGesture:)];
[longPressOnUndoGesture setMinimumPressDuration:2.0];
[longPressOnUndoGesture release];
내 응용 프로그램에서 자동 스크롤 타이머를 비활성화하려면 위의 코드가 있어야합니다.이 기능은이 기능입니다.iphone sdk의 UILongPressGesture
-(void) handleLongPressOnUndoGesture:(UILongPressGestureRecognizer*)recognizer {
[autoscrollTimer invalidate];
}
하지만 난 2 초 taptohold 때 늘 거기 timer.is 제스처에 대한 내 코드에서 오류를 중지합니다. 미리 감사드립니다.
오하이오 신. 감사합니다. – stackiphone
도움이된다면 upvote하고 받아 들일 수 있겠습니까? 고맙습니다. –