Преглед на файлове

add long press action for action image

Marino Faggiana преди 7 години
родител
ревизия
c31e9007a9
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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];
 }