We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9d9ee3 + 51166e5 commit 90e6651Copy full SHA for 90e6651
TSMessages/Views/TSMessageView.m
@@ -327,9 +327,11 @@ - (id)initWithTitle:(NSString *)title
327
[self addGestureRecognizer:tapRec];
328
}
329
330
- UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
331
- tapGesture.delegate = self;
332
- [self addGestureRecognizer:tapGesture];
+ if (self.callback) {
+ UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
+ tapGesture.delegate = self;
333
+ [self addGestureRecognizer:tapGesture];
334
+ }
335
336
return self;
337
0 commit comments