Browse Source

add long press action for action image

Marino Faggiana 7 năm trước cách đây
mục cha
commit
c31e9007a9
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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];
 }