iOS Question Text doesn't appear under awesomefont

monic

Active Member
Licensed User
Longtime User
Ive been trying to make this work under B4I but I can't get the text to appear under the awesome font:

I took the original code from https://www.b4x.com/android/forum/threads/b4a-xui-bottom-toolbar.94369/#content

B4X:
Sub CreateLabel(Label As Label, Text1 As String, Text2 As String) As B4XBitmap
    Dim cs As CSBuilder
    cs.Initialize
    cs.Font(Font.CreateFontAwesome(30)).Append(Text1).Pop.Append(CRLF).Font(Font.CreateNew(10)).Append(Text2).Alignment("ALIGN_CENTER").PopAll
    Label.AttributedText = cs
 
    xlbl = Label
 
    'xlbl.Text = cs. <-----   This might be the reason?
 
    xlbl.TextColor = xui.Color_White
    Return xlbl.Snapshot
End Sub
 
Top