소스 검색

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