Permalink
Browse files

TTLauncherButton add support for badge text to be ! if badgeNumber is…

… NSNotFound.
  • Loading branch information...
1 parent 532e107 commit 4e92b36d62c0b632f21401a00da3a935841fa2f4 Eric Chamberlain committed Feb 14, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Three20UI/Sources/TTLauncherButton.m
@@ -111,7 +111,9 @@ - (void)updateBadge {
[self addSubview:_badge];
}
- if (_item.badgeNumber > 0) {
+ if (_item.badgeNumber == NSNotFound) {
+ _badge.text = @"!";
+ } else if (_item.badgeNumber > 0) {
if (_item.badgeNumber <= kMaxBadgeNumber) {
_badge.text = [NSString stringWithFormat:@"%d", _item.badgeNumber];

0 comments on commit 4e92b36

Please sign in to comment.