Skip to content

Commit

Permalink
Allow tapping on the bubble itself
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeers committed Feb 25, 2015
1 parent 1531e0d commit a49ee94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Coach Marks/DDBubble.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit a49ee94

Please sign in to comment.