From 8eb78059e5de54d42c9138fa11db8517d3168e25 Mon Sep 17 00:00:00 2001 From: Angel Vasa Date: Mon, 16 Feb 2015 17:16:15 +0530 Subject: [PATCH 1/2] Fixed : Crash with two fingers & centroid issue #15 --- .../Helpers/LSCollectionViewHelper.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DraggableCollectionView/Helpers/LSCollectionViewHelper.m b/DraggableCollectionView/Helpers/LSCollectionViewHelper.m index 77929f6..54ace6a 100644 --- a/DraggableCollectionView/Helpers/LSCollectionViewHelper.m +++ b/DraggableCollectionView/Helpers/LSCollectionViewHelper.m @@ -152,6 +152,17 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni return NO; } + +- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { + if (gestureRecognizer.numberOfTouches < 1) { + return YES; + } else { + return NO; + } +} + + + - (NSIndexPath *)indexPathForItemClosestToPoint:(CGPoint)point { NSArray *layoutAttrsInRect; From f1c3415e155c0ed469281bfca54fc70123bbb79c Mon Sep 17 00:00:00 2001 From: Angel Vasa Date: Wed, 18 Mar 2015 20:20:59 +0530 Subject: [PATCH 2/2] added pod spec Signed-off-by: Angel Vasa --- DraggableCollectionView.podspec | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 DraggableCollectionView.podspec diff --git a/DraggableCollectionView.podspec b/DraggableCollectionView.podspec new file mode 100644 index 0000000..de5c462 --- /dev/null +++ b/DraggableCollectionView.podspec @@ -0,0 +1,13 @@ +Pod::Spec.new do |s| +s.name = "DraggableCollectionView" +s.version = "0.1" +s.summary = "Extension for the UICollectionView and UICollectionViewLayout that allows a user to move items with drag and drop." +s.homepage = "https://github.com/lognllc/DraggableCollectionView" +s.license = { :type => 'MIT', :file => 'LICENSE' } +s.authors = [ 'Luke Scott', 'Rex Sheng' ] +s.source = { :git => "https://github.com/angelvasa/DraggableCollectionView.git", :tag => s.version.to_s } +s.platform = :ios, '6.0' +s.requires_arc = true +s.source_files = 'DraggableCollectionView', 'DraggableCollectionView/**/*.{h,m}' + +end \ No newline at end of file