AliSoftware / AliSoftware/OHAttributedLabel

UILineBreakMode*Truncation modes (leading/trailing "…") and multiline

Offen
#3 22 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Apple Bug
Vorherrschende Sprache
Objective-C
Sterne
1.5k
Forks
341
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Word Wrapping and Truncation is not well managed.

Today the OHAttributed does not support both multiline (numberOfLines>1) and "Truncation" lineBreakMode alltogether : if you choose one of the UILineBreakMode*Truncation mode, only the first line will be displayed.

It is probably easy to add the UILineBreakModeTailTruncation mode support by using the VisibleStringRange information (I just don't have time to add this right now)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.