Skip to content
Browse files

Fixed assigning badge value from string, and removing badge correctly

  • Loading branch information...
1 parent ccc9237 commit 96578356a0d2ab7e956880f87c7b4a8c5af0cb40 @AndiDog committed Nov 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 iOS/TabBar/2.1.0 (non-ARC)/TabBar.m
View
4 iOS/TabBar/2.1.0 (non-ARC)/TabBar.m
@@ -371,7 +371,9 @@ - (void)updateItem:(CDVInvokedUrlCommand*)command
id badgeOpt = [options objectForKey:@"badge"];
if(badgeOpt && badgeOpt != [NSNull null])
- item.badgeValue = [badgeOpt stringValue];
+ item.badgeValue = [NSString stringWithFormat:@"%@", badgeOpt];
+ else
+ item.badgeValue = nil;
}
}

0 comments on commit 9657835

Please sign in to comment.
Something went wrong with that request. Please try again.