C# Class Restaurant.iOS.Controls.BadgeBarButtonItem

Inheritance: UIBarButtonItem
Afficher le fichier Open project: Jurabek/Restaurant Class Usage Examples

Méthodes publiques

Méthode Description
BadgeBarButtonItem ( ) : System
BadgeBarButtonItem ( UIButton customButton ) : System
RefreshBadge ( ) : void

Change new attributes

RemoveBadge ( ) : void
UpdateBadgeValueAnimated ( bool animated ) : void

Private Methods

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

Method Details

BadgeBarButtonItem() public méthode

public BadgeBarButtonItem ( ) : System
Résultat System

BadgeBarButtonItem() public méthode

public BadgeBarButtonItem ( UIButton customButton ) : System
customButton UIButton
Résultat System

RefreshBadge() public méthode

Change new attributes
public RefreshBadge ( ) : void
Résultat void

RemoveBadge() public méthode

public RemoveBadge ( ) : void
Résultat void

UpdateBadgeValueAnimated() public méthode

public UpdateBadgeValueAnimated ( bool animated ) : void
animated bool
Résultat void