Skip to content

Commit

Permalink
Merge pull request #129 from schystz/master
Browse files Browse the repository at this point in the history
Bugfix: Tapping of TSMessageView doesn't dismiss it
  • Loading branch information
KrauseFx committed Apr 16, 2014
2 parents b9d9ee3 + 51166e5 commit 90e6651
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TSMessages/Views/TSMessageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,11 @@ - (id)initWithTitle:(NSString *)title
[self addGestureRecognizer:tapRec];
}

UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
tapGesture.delegate = self;
[self addGestureRecognizer:tapGesture];
if (self.callback) {
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
tapGesture.delegate = self;
[self addGestureRecognizer:tapGesture];
}
}
return self;
}
Expand Down

0 comments on commit 90e6651

Please sign in to comment.