From a49ee94cf47986ee54a0cd5d862660d06b800f96 Mon Sep 17 00:00:00 2001 From: Andy Geers Date: Fri, 20 Feb 2015 08:48:09 +0000 Subject: [PATCH] Allow tapping on the bubble itself --- Coach Marks/DDBubble.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Coach Marks/DDBubble.m b/Coach Marks/DDBubble.m index 2294926..adfe343 100755 --- a/Coach Marks/DDBubble.m +++ b/Coach Marks/DDBubble.m @@ -55,6 +55,9 @@ -(id)initWithFrame:(CGRect)frame title:(NSString*)title description:(NSString*)d [self setFrame:[self calculateFrameWithFont:font]]; [self fixFrameIfOutOfBounds]; + // Make it pass touch events through to the DDCoachMarksView + [self setUserInteractionEnabled:NO]; + // calculate and position text CGSize offsets = [self offsets]; float actualXPosition = offsets.width+PADDING*1.5; @@ -71,9 +74,9 @@ -(id)initWithFrame:(CGRect)frame title:(NSString*)title description:(NSString*)d [titleLabel setBackgroundColor:[UIColor clearColor]]; [titleLabel setLineBreakMode:NSLineBreakByWordWrapping]; [titleLabel setNumberOfLines:0]; + [titleLabel setUserInteractionEnabled:NO]; [self addSubview:titleLabel]; - [self setNeedsDisplay]; return self; }