iOS Question Disabling Toolbar buttons and Fontawesome

keirS

Well-Known Member
Licensed User
How do I handle disabling a ToolBar button when using Fontawesome? When I disable the button the icon changes to a question mark.
 

Erel

Administrator
Staff member
Licensed User
Add this code to AppStart:
B4X:
For Each b As BarButton In Page1.ToolbarButtons
   Dim no As NativeObject = b
   Dim text As NativeObject = no.RunMethod("titleTextAttributesForState:", Array(0))
   If text.IsInitialized Then
       no.RunMethod("setTitleTextAttributes:forState:", Array(text, 0x100))
   End If
Next
It will be fixed in the next update.
 
Top