From 9a3c8e556d6822df77eb1d465ffafc944f210d8b Mon Sep 17 00:00:00 2001 From: Artyom Usachev Date: Thu, 15 Nov 2012 10:56:20 +0200 Subject: [PATCH 1/2] Fixed delegate method that called after object added to location --- Classes/SEDraggable.h | 0 Classes/SEDraggable.m | 2 +- Classes/SEDraggableLocation.h | 0 Classes/SEDraggableLocation.m | 4 ++++ 4 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 Classes/SEDraggable.h mode change 100644 => 100755 Classes/SEDraggable.m mode change 100644 => 100755 Classes/SEDraggableLocation.h mode change 100644 => 100755 Classes/SEDraggableLocation.m diff --git a/Classes/SEDraggable.h b/Classes/SEDraggable.h old mode 100644 new mode 100755 diff --git a/Classes/SEDraggable.m b/Classes/SEDraggable.m old mode 100644 new mode 100755 index f948f1f..f834386 --- a/Classes/SEDraggable.m +++ b/Classes/SEDraggable.m @@ -164,7 +164,7 @@ - (void) handleDrag:(id)sender { if ([self.delegate respondsToSelector:@selector(draggableObjectDidStopMoving:)]) [self.delegate draggableObjectDidStopMoving:self]; -// [dropLocation draggableObjectWasDroppedInside:self animated:YES]; + [dropLocation draggableObjectWasDroppedInside:self animated:YES]; if ([self.delegate respondsToSelector:@selector(draggableObject:didStopMovingWithinLocation:)]) [self.delegate draggableObject:self didStopMovingWithinLocation:dropLocation]; diff --git a/Classes/SEDraggableLocation.h b/Classes/SEDraggableLocation.h old mode 100644 new mode 100755 diff --git a/Classes/SEDraggableLocation.m b/Classes/SEDraggableLocation.m old mode 100644 new mode 100755 index 3f35dbc..ee0038e --- a/Classes/SEDraggableLocation.m +++ b/Classes/SEDraggableLocation.m @@ -178,6 +178,10 @@ - (BOOL) draggableObjectWantsToSnapBack:(SEDraggable *)draggable animated:(BOOL) } - (BOOL) draggableObjectWasDroppedInside:(SEDraggable *)draggable animated:(BOOL)animated { + if([self.delegate respondsToSelector:@selector(draggableObject:wasAddedToLocation:)]) + { + [self.delegate draggableObject:draggable wasAddedToLocation:self]; + } return [self draggableObject:draggable wantsToEnterLocationWithEntryMethod:SEDraggableLocationEntryMethodWasDropped animated:animated]; } From 9cec0587d70e976f1b8bd9eb048ab95941ffd7f0 Mon Sep 17 00:00:00 2001 From: Artyom Usachev Date: Thu, 15 Nov 2012 12:52:23 +0200 Subject: [PATCH 2/2] git rep changed --- SEDraggable.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SEDraggable.podspec b/SEDraggable.podspec index 8671266..ef0866a 100644 --- a/SEDraggable.podspec +++ b/SEDraggable.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.summary = 'Drag and drop UIView subclasses for iOS' s.homepage = 'http://github.com/brynbellomy/iOS-DragAndDrop' s.author = { 'bryn austin bellomy' => 'bryn@signals.io' } - s.source = { :git => 'http://github.com/brynbellomy/iOS-DragAndDrop.git', :tag => '1.0.0' } + s.source = { :git => 'https://github.com/WhiteOwlUk/iOS-DragAndDrop.git', :tag => '1.0.1' } s.platform = :ios s.source_files = 'Classes', 'Classes/**/*.{h,m}' s.requires_arc = true