Méthode | Description | |
---|---|---|
BadgeBarButtonItem ( ) : System | ||
BadgeBarButtonItem ( UIButton customButton ) : System | ||
RefreshBadge ( ) : void |
Change new attributes
|
|
RemoveBadge ( ) : void | ||
UpdateBadgeValueAnimated ( bool animated ) : void |
Méthode | Description | |
---|---|---|
DuplicateLabel ( UILabel labelToCopy ) : UILabel | ||
InitializeValues ( ) : void | ||
UpdateBadgeFrame ( ) : void |
When the value changes the badge could need to get bigger Calculate expected size to fit new value Use an intermediate label to get expected size thanks to sizeToFit We don't call sizeToFit on the true label to avoid bad display
|
public BadgeBarButtonItem ( UIButton customButton ) : System | ||
customButton | UIButton | |
Résultat | System |
public UpdateBadgeValueAnimated ( bool animated ) : void | ||
animated | bool | |
Résultat | void |