diff --git a/SWTableViewCell.podspec b/SWTableViewCell.podspec index a2291dcb..0b03bd35 100644 --- a/SWTableViewCell.podspec +++ b/SWTableViewCell.podspec @@ -7,6 +7,7 @@ Pod::Spec.new do |s| s.license = 'MIT' s.source = { :git => 'https://github.com/CEWendel/SWTableViewCell.git', :tag => s.version.to_s } s.source_files = 'SWTableViewCell/PodFiles/*.{h,m}' + s.vendored_libraries = 'SWTableViewCell/libDevLibrary.a' s.platform = :ios s.ios.deployment_target = '6.0' s.requires_arc = true diff --git a/SWTableViewCell/PodFiles/SWLongPressGestureRecognizer.m b/SWTableViewCell/PodFiles/SWLongPressGestureRecognizer.m index 2f2c5192..e96954f4 100644 --- a/SWTableViewCell/PodFiles/SWLongPressGestureRecognizer.m +++ b/SWTableViewCell/PodFiles/SWLongPressGestureRecognizer.m @@ -19,7 +19,12 @@ -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesMoved:touches withEvent:event]; - self.state = UIGestureRecognizerStateFailed; + UITouch *touch = touches.anyObject; + if (CGPointEqualToPoint([touch locationInView:touch.view], [touch previousLocationInView:touch.view])) { + self.state = UIGestureRecognizerStateBegan; + } else { + self.state = UIGestureRecognizerStateCancelled; + } } -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event diff --git a/SWTableViewCell/libDevLibrary.a b/SWTableViewCell/libDevLibrary.a new file mode 100644 index 00000000..f94eb517 Binary files /dev/null and b/SWTableViewCell/libDevLibrary.a differ