iOSLabeliOSLibEnhanced - UBogun/Xojo-iosLib GitHub Wiki

Native class: AppleLabel
Inherits from: iOSLabel

iOSLabeliOSLibEnhanced is not a custom control, but a simple subclass of iOSLabel with additional inspector properties.
In this class, like in the iOSLabelExtension module, you can address the additional features of AppleLabel with Xojo values and data types.

Inspector Properties

Inspector properties
Inspector behavior properties of iOSLabeliOSLibEnhanced.

Properties

AdjustFontSize As Boolean: Whether the font size should be reduced in order to fit the title string into the label’s bounding rectangle.

AllowTightening As Boolean: Whether the label tightens text before truncating. Available since iOS 9.0.

BaselineAdjustment As UIBaselineAdjustment: How text baselines are adjusted when text needs to shrink to fit in the label.

###UIBaseLineAdjustment

Value Definition
Baselines Adjust text relative to the position of its baseline.
Centers Adjust text based relative to the center of its bounding box.
None Adjust text relative to the top-left corner of the bounding box. This is the default adjustment.

Highlighted As Boolean: Whether the control should be drawn with a highlight.

HighlightedTextColor Color: The highlight color applied to the label’s text.

MinimumScaleFactor As Double: The minimum scale factor supported for the label’s text.

NumberOfLines As Integer: The maximum number of lines to use for rendering text. Default = 1. Unlimited = 0.

MultiLineMaxWidth As Double: The preferred maximum width (in points) for a multiline label.

Not accessible in Inspector, only via module.

ShadowColor As Color: The shadow color of the text.

ShadowOffset As Xojo.Core.Size: The shadow offset (measured in points) for the text.

In Inspector, the properties ShadowXOffset and ShadowYOffset are available for direct input of X and Y as Double.

Events

Being a direct subclass, all the events of iOSLabel are available. If you need to access certain UIView event, refer to the AppleLabel documentation.