Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SWTableViewCell.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion SWTableViewCell/PodFiles/SWLongPressGestureRecognizer.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added SWTableViewCell/libDevLibrary.a
Binary file not shown.