-
-
Save gliubc/23bea83dc7783bc6eee70a3db5a0d62f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WZLBadgeImport.h" | |
- (void)viewDidAppear:(BOOL)animated { | |
[super viewDidAppear:animated]; | |
self.messageButtonItem.badgeCenterOffset = CGPointMake(-10, 5); | |
self.messageButtonItem.badgeFont = [UIFont systemFontOfSize:12]; | |
self.messageButtonItem.badgeBgColor = HEXCOLOR(0xFF7159); | |
self.messageButtonItem.badgeTextColor = HEXCOLOR(0xFFFFFF); | |
[self.messageButtonItem showBadgeWithStyle:WBadgeStyleNumber value:333 animationType:WBadgeAnimTypeNone]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment