QMBTabs
QMBTabs copied to clipboard
Can't update badge number
Can't update badge number when set badge by @property (nonatomic, strong, readonly) UILabel *textLabel;
To solve this problem by add some codes as follow: // The badge text. @property (nonatomic, copy) NSString *badgeText;
- (void) setBadgeText:(NSString *)badgeText { _badgeText = badgeText; self.textLabel.text = badgeText; [self setNeedsDisplay]; }