Skip to content

Commit

Permalink
Merge pull request #56 from RogyMD/patch-1
Browse files Browse the repository at this point in the history
Resolved issue when set stringColor.
  • Loading branch information
Tim Davies committed Apr 24, 2014
2 parents c6481d9 + 3045914 commit c880a1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TDBadgedCell (xcode project)/TDBadgedCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ - (void) drawRect:(CGRect)rect
}
else {

if(__badgeTextColor)
if(__badgeTextColor) {
stringColor = __badgeTextColor;
else
} else {
stringColor = [UIColor clearColor];
CGContextSetBlendMode(context, kCGBlendModeClear);
}
}

NSMutableParagraphStyle *paragraph = [[NSMutableParagraphStyle alloc] init];
Expand Down

0 comments on commit c880a1d

Please sign in to comment.