Skip to content

Commit

Permalink
Merge pull request #93 from srekke/always_tappable
Browse files Browse the repository at this point in the history
Make a message tappable even though it is not dismissible
  • Loading branch information
KrauseFx committed Dec 20, 2013
2 parents 31beb17 + 2648b1c commit 14e56e4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions TSMessages/Views/TSMessageView.m
Expand Up @@ -325,11 +325,11 @@ - (id)initWithTitle:(NSString *)title
UITapGestureRecognizer *tapRec = [[UITapGestureRecognizer alloc] initWithTarget:self
action:@selector(fadeMeOut)];
[self addGestureRecognizer:tapRec];

UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
tapGesture.delegate = self;
[self addGestureRecognizer:tapGesture];
}

UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
tapGesture.delegate = self;
[self addGestureRecognizer:tapGesture];
}
return self;
}
Expand Down Expand Up @@ -480,8 +480,6 @@ - (void)handleTap:(UITapGestureRecognizer *)tapGesture
{
self.callback();
}

[self fadeMeOut];
}
}

Expand Down

0 comments on commit 14e56e4

Please sign in to comment.