12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //
- // ShowImageView.m
- // VclustersGemini
- //
- // Created by APPLE on 2019/10/10.
- // Copyright © 2019 APPLE. All rights reserved.
- //
- #import "ShowImageView.h"
- #import "RCCommandHelp.h"
- @interface ShowImageView ()
- {
- }
- @end
- @implementation ShowImageView
- @synthesize delegate;
- @synthesize isLan;
- - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- {
-
- NSInteger touchCount = [[event allTouches] count];/*手指事件个数*/
-
- /*当前活动手势 在touches中 关联事件个数在event中*/
- for (UITouch *touch in touches)
- {
- NSString *dataStr = [RCCommandHelp tapDownCommandTouches:touch touchCount:touchCount showImageView:self isLan:isLan];
-
- // HLog(@"\n---touchesBegan = %@----",dataStr);
- if ([delegate respondsToSelector:@selector(showImageViewtouchesBeganCommondStr:)])
- {
- [delegate showImageViewtouchesBeganCommondStr:dataStr];
- }
- }
- }
- - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- {
- NSInteger touchCount = [[event allTouches] count];/*手指事件个数*/
-
- /*当前活动手势 在touches中 关联事件个数在event中*/
- for (UITouch *touch in touches)
- {
- NSString *dataStr = [RCCommandHelp tapUpCommandTouches:touch touchCount:touchCount showImageView:self isLan:isLan];
-
- // HLog(@"\n---touchesEnded = %@----",dataStr);
- if ([delegate respondsToSelector:@selector(showImageViewtouchesEndedCommondStr:)])
- {
- [delegate showImageViewtouchesEndedCommondStr:dataStr];
- }
- }
- }
- - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- {
- NSInteger touchCount = [[event allTouches] count];/*手指事件个数*/
-
- /*当前活动手势 在touches中 关联事件个数在event中*/
- for (UITouch *touch in touches)
- {
- NSString *dataStr = [RCCommandHelp tapMoveCommandTouches:touch touchCount:touchCount showImageView:self isLan:isLan];
- // HLog(@"\n---touchesMoved = %@----",dataStr);
-
- if ([delegate respondsToSelector:@selector(showImageViewtouchesMovedCommondStr:)])
- {
- [delegate showImageViewtouchesMovedCommondStr:dataStr];
- }
- }
- }
- - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- {
- NSInteger touchCount = [[event allTouches] count];/*手指事件个数*/
-
- /*当前活动手势 在touches中 关联事件个数在event中*/
- for (UITouch *touch in touches)
- {
- NSString *dataStr = [RCCommandHelp tapUpCommandTouches:touch touchCount:touchCount showImageView:self isLan:isLan];
-
- // HLog(@"\n---touchesCancelled = %@----",dataStr);
- if ([delegate respondsToSelector:@selector(showImageViewtouchesCancelledCommondStr:)])
- {
- [delegate showImageViewtouchesCancelledCommondStr:dataStr];
- }
- }
- }
- @end
|