Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Vendor/MWPhotoBrowser/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  MWTapDetectingView.m   Sprache: Unknown

 

Spracherkennung für: .m vermutete Sprache: CS {CS[44] JAVA[44] Rust[44]} [Methode: maximale Elemente, drei Dimensionen]

//
//  UIViewTap.m
//  Momento
//
//  Created by Michael Waterfall on 04/11/2009.
//  Copyright 2009 d3i. All rights reserved.
//

#import "MWTapDetectingView.h"

@implementation MWTapDetectingView

- (id)init {
 if ((self = [super init])) {
  self.userInteractionEnabled = YES;
 }
 return self;
}

- (id)initWithFrame:(CGRect)frame {
 if ((self = [super initWithFrame:frame])) {
  self.userInteractionEnabled = YES;
 }
 return self;
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
 UITouch *touch = [touches anyObject];
 NSUInteger tapCount = touch.tapCount;
 switch (tapCount) {
  case 1:
   [self handleSingleTap:touch];
   break;
  case 2:
   [self handleDoubleTap:touch];
   break;
  case 3:
   [self handleTripleTap:touch];
   break;
  default:
   break;
 }
 [[self nextResponder] touchesEnded:touches withEvent:event];
}

- (void)handleSingleTap:(UITouch *)touch {
 if ([_tapDelegate respondsToSelector:@selector(view:singleTapDetected:)])
  [_tapDelegate view:self singleTapDetected:touch];
}

- (void)handleDoubleTap:(UITouch *)touch {
 if ([_tapDelegate respondsToSelector:@selector(view:doubleTapDetected:)])
  [_tapDelegate view:self doubleTapDetected:touch];
}

- (void)handleTripleTap:(UITouch *)touch {
 if ([_tapDelegate respondsToSelector:@selector(view:tripleTapDetected:)])
  [_tapDelegate view:self tripleTapDetected:touch];
}

@end

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.