marinofaggiana 5 vuotta sitten
vanhempi
commit
0767e44a40
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6 4
      iOSClient/Main/CCMain.m

+ 6 - 4
iOSClient/Main/CCMain.m

@@ -151,10 +151,12 @@
     
     // Load Rich Workspace
     self.viewRichWorkspace = [[[NSBundle mainBundle] loadNibNamed:@"NCRichWorkspace" owner:self options:nil] firstObject];
-    UITapGestureRecognizer *viewRichWorkspaceTapped = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(viewRichWorkspaceTapAction:)];
-    viewRichWorkspaceTapped.numberOfTapsRequired = 1;
-    viewRichWorkspaceTapped.delegate = self;
-    [self.viewRichWorkspace addGestureRecognizer:viewRichWorkspaceTapped];
+    if (@available(iOS 11, *)) {
+        UITapGestureRecognizer *viewRichWorkspaceTapped = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(viewRichWorkspaceTapAction:)];
+        viewRichWorkspaceTapped.numberOfTapsRequired = 1;
+        viewRichWorkspaceTapped.delegate = self;
+        [self.viewRichWorkspace addGestureRecognizer:viewRichWorkspaceTapped];
+    }
     heightRichWorkspace = UIScreen.mainScreen.bounds.size.height/4 + heightSearchBar;
     self.viewRichWorkspace.textViewTopConstraint.constant = heightSearchBar;
     [self.viewRichWorkspace setFrame:CGRectMake(0, 0, self.tableView.frame.size.width, heightRichWorkspace)];