Browse Source

add long press action for action image

Marino Faggiana 7 years ago
parent
commit
c31e9007a9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/Library/MWPhotoBrowser/MWPhotoBrowser.m

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

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