瀏覽代碼

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];
 }