Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Classes/CustomBadge.m
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,16 @@ - (void)drawRect:(CGRect)rect {

}

// Allow clicks on the badge passthrough to the object below. This is useful when attaching to a button
// see: http://stackoverflow.com/a/4010809
-(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
for (UIView *view in self.subviews) {
if ([view pointInside:[self convertPoint:point toView:view] withEvent:event])
return YES;
}
return NO;
}

- (void)dealloc {

[badgeText release];
Expand Down