C# Class MonoTouch.Dialog.BaseBooleanImageElement

This class is used to render a string + a state in the form of an image.
It is abstract to avoid making this element keep two pointers for the state images, saving 8 bytes per slot. The more derived class "BooleanImageElement" shows one way to implement this by keeping two pointers, a better implementation would return pointers to images that were preloaded and are static. A subclass only needs to implement the GetImage method.
Inheritance: BoolElement
Afficher le fichier Open project: nicwise/londonbikeapp Class Usage Examples

Méthodes publiques

Méthode Description
BaseBooleanImageElement ( string caption, bool value ) : System
GetCell ( UITableView tv ) : UITableViewCell

Méthodes protégées

Méthode Description
GetImage ( ) : UIImage

Method Details

BaseBooleanImageElement() public méthode

public BaseBooleanImageElement ( string caption, bool value ) : System
caption string
value bool
Résultat System

GetCell() public méthode

public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
Résultat UITableViewCell

GetImage() protected abstract méthode

protected abstract GetImage ( ) : UIImage
Résultat UIImage