From fef0a612162d9470022c1d82c85d46d1e3705c5a Mon Sep 17 00:00:00 2001 From: Alexey Oshevnev Date: Fri, 3 May 2013 11:57:05 +0300 Subject: [PATCH] Added closing of pullDownController by one touch tap --- MBPullDownController/MBPullDownController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MBPullDownController/MBPullDownController.m b/MBPullDownController/MBPullDownController.m index 00a2561..8ae2926 100644 --- a/MBPullDownController/MBPullDownController.m +++ b/MBPullDownController/MBPullDownController.m @@ -288,7 +288,7 @@ - (void)checkOpenCloseConstraints { if (enabled && offset.y > self.closeDragOffset - self.view.bounds.size.height + self.openBottomOffset) { [self setOpen:NO animated:YES]; } else { - [self setOpen:YES animated:YES]; + [self setOpen:(abs(offset.y) == (int)[self scrollView].bounds.size.height - self.openBottomOffset) ? NO : YES animated:YES]; } } }