Tutorial by Topics: label



The UILabel class implements a read-only text view. You can use this class to draw one or multiple lines of static text, such as those you might use to identify other parts of your user interface. The base UILabel class provides support for both simple and complex styling of the label text. You can also control over aspects of appearance, such as whether the label uses a shadow or draws with a highlight. If needed, you can customize the appearance of your text further by subclassing.

IO.inspect is very useful when you try to debug your chains of method calling. It can get messy though if you use it too often.

Since Elixir 1.4.0 the label option of IO.inspect can help

QLabel is used for displaying text or an image. No user interaction functionality is provided. The visual appearance of the label can be configured in various ways, and it can be used for specifying a focus mnemonic key for another widget.

This shows the proper usage of images and how to correctly display images.

The current styled text that is displayed by the label.

You can add HTML text in UILabel using attributedText property or customized single UILabel text with different property


Page 1 of 1