From 447862e71d68f523596b0d37863fba9cc9ce97f5 Mon Sep 17 00:00:00 2001 From: Stefan Lage Date: Fri, 9 May 2014 19:35:26 +0200 Subject: [PATCH] Enable/Disable selection when shutter moved TableView down -> Disable " up -> Enable --- SLParallaxController/SLParallaxController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SLParallaxController/SLParallaxController.m b/SLParallaxController/SLParallaxController.m index 6320364..eb7b33a 100644 --- a/SLParallaxController/SLParallaxController.m +++ b/SLParallaxController/SLParallaxController.m @@ -147,6 +147,8 @@ -(void) openShutter{ self.tableView.frame = CGRectMake(0, self.Y_tableViewOnBottom, self.tableView.frame.size.width, self.tableView.frame.size.height); } completion:^(BOOL finished){ + // Disable cells selection + [self.tableView setAllowsSelection:NO]; self.isShutterOpen = YES; [self.tableView setScrollEnabled:NO]; // Center the user 's location @@ -172,6 +174,8 @@ -(void) closeShutter{ self.tableView.frame = CGRectMake(0, self.default_Y_tableView, self.tableView.frame.size.width, self.tableView.frame.size.height); } completion:^(BOOL finished){ + // Enable cells selection + [self.tableView setAllowsSelection:YES]; self.isShutterOpen = NO; [self.tableView setScrollEnabled:YES]; [self.tableView.tableHeaderView addGestureRecognizer:self.tapMapViewGesture];