iOS Question Change Label Background

Turbo3

Active Member
Licensed User
Longtime User
In B4A we have SetBackgroundImage for a Label.

Can the same thing be done in B4i? If so, how?

I am hoping a modified version of this code that works for buttons would do the job.
B4X:
Sub SetBackgroundImage(b As Button, bmp As Bitmap, state As Int)
Dim no As NativeObject = b
no.RunMethod("setBackgroundImage:forState:", Array(bmp, state))
End Sub
 
Last edited:
Top