Skip to content

Commit

Permalink
Merge pull request MortimerGoro#208 from tateexon/master
Browse files Browse the repository at this point in the history
Do nothing with nil events caused by UIAutomation, fixes test automation
  • Loading branch information
MortimerGoro authored Jul 25, 2016
2 parents fa0aa7e + 78871aa commit 6974413
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ -(id) initWithFrame:(CGRect)frame

-(UIView *) hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
if (event == nil) {
return nil;
}
if (!_currentCell) {
[self removeFromSuperview];
return nil;
Expand Down

0 comments on commit 6974413

Please sign in to comment.