iOS Question Button Background Image from Visual Designer

jesustarre

Member
Licensed User
Longtime User
How can I add a png file to my button from the designer? The designer shows the option but does not let me add any image

Thank you
 

Attachments

  • Capture01.PNG
    Capture01.PNG
    7 KB · Views: 195
Last edited:

jesustarre

Member
Licensed User
Longtime User
Done!

Dim wcrimg As Bitmap

(...)

wcrimg.Initialize(File.DirAssets,"wcr-c2.png")

SetBackgroundImage (wcr,wcrimg, 0)

(...)


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
 
Upvote 0
Top