Эх сурвалжийг харах

add long press action for action image

Marino Faggiana 7 жил өмнө
parent
commit
c31e9007a9

+ 4 - 0
iOSClient/Library/MWPhotoBrowser/MWPhotoBrowser.m

@@ -191,6 +191,10 @@ static void * MWVideoPlayerObservation = &MWVideoPlayerObservation;
         [self.view addGestureRecognizer:swipeGesture];
         [self.view addGestureRecognizer:swipeGesture];
     }
     }
     
     
+    // Long Press
+    UILongPressGestureRecognizer* longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(actionButtonPressed:)];
+    [self.view addGestureRecognizer:longPressRecognizer];
+    
 	// Super
 	// Super
     [super viewDidLoad];
     [super viewDidLoad];
 }
 }